Interface ButtonProps

Interface for PropTypes for the Button component.

Hierarchy

  • BaseStyleProp<ButtonStyles>
    • ButtonProps

Properties

children?: ReactNode

The content of the component.

className?: string

The class name to be applied to the element.

classes?: Partial<Record<ButtonStyles, CSSProperties>>

Override or extend the styles applied to the component.

href: string

The URL to link to when the button is clicked. An a element will be used as the root node.

target?: HTMLAttributeAnchorTarget

The target of the link.

Default

'_blank'

variant?: "primary" | "secondary"

Applies the theme button styles.

Default

'primary'

Generated using TypeDoc