{firstInitial}
+ )} + + ) + } + + return ( + + ) +} diff --git a/plugins/interface/components/button/Button.tsx b/plugins/interface/components/button/Button.tsx new file mode 100644 index 0000000..13d3d0a --- /dev/null +++ b/plugins/interface/components/button/Button.tsx @@ -0,0 +1,86 @@ +import { FC, JSX } from 'hono/jsx' +import { Loader } from '../loader/Loader' +import { cn } from '../../utils/index' + +type ButtonProps = { + as?: string + children?: any + className?: string + disabled?: boolean + displayContent?: 'items-first' | 'items-last' + href?: string + loading?: boolean + shape?: 'base' | 'square' + size?: 'sm' | 'base' | 'lg' + title?: string + toggled?: boolean + variant?: 'primary' | 'secondary' | 'ghost' | 'destructive' + onClick?: () => void +} + +export const Button: FC