First Commit
This commit is contained in:
16
src/Fab.tsx
Normal file
16
src/Fab.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import { h, JSX } from "preact";
|
||||
|
||||
export default function Fab({
|
||||
className,
|
||||
children,
|
||||
alignLeft,
|
||||
...props
|
||||
}: JSX.HTMLAttributes<HTMLButtonElement> & { alignLeft: boolean }) {
|
||||
let cl = "ht-fab " + (alignLeft ? "ht-fab-left " : "");
|
||||
|
||||
return (
|
||||
<button className={cl + className} {...props}>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user