UNPKG

@reusable-ui/button

Version:

A button component for initiating an action.

9 lines (8 loc) 252 B
// defaults: const _defaultButtonStyle = 'regular'; export const useButtonVariant = ({ buttonStyle = _defaultButtonStyle }) => { return { class: (buttonStyle === 'regular') ? null : buttonStyle, }; }; //#endregion ButtonVariant