UNPKG

@alauda/doom

Version:

Doctor Doom making docs.

6 lines (5 loc) 367 B
import { jsx as _jsx } from "react/jsx-runtime"; import { clsx } from 'clsx'; export const Button = ({ className, block, type, htmlType = 'button', loading, disabled = loading, ...props }) => { return (_jsx("button", { className: clsx('button', block && 'button--block', type && `button--${type}`, className), type: htmlType, disabled: disabled, ...props })); };