First Commit

This commit is contained in:
Fabian Stamm
2020-03-29 16:05:39 +02:00
commit 3f63c202f6
17 changed files with 498 additions and 0 deletions

16
src/Fab.tsx Normal file
View 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>
);
}