ThemePreact/src/Fab.tsx

17 lines
355 B
TypeScript
Raw Normal View History

2020-03-29 16:05:39 +02:00
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>
);
}