ThemePreact/src/Fab.tsx

17 lines
355 B
TypeScript

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>
);
}