First Commit
This commit is contained in:
12
src/IconButton.tsx
Normal file
12
src/IconButton.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import { h, JSX } from "preact";
|
||||
export default function IconButton({
|
||||
children,
|
||||
className,
|
||||
...props
|
||||
}: JSX.HTMLAttributes<HTMLButtonElement>) {
|
||||
return (
|
||||
<button className={"ht-btn ht-btn-icon " + className} {...props}>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user