Getting started

InstallUsageGuidelinesContributeRelease

Foundation

Navigation

Forms

ButtonButton GroupCheckboxCheckbox GroupClipboard ButtonComboboxEditable DescriptionEditable HeadingFile InputForm FieldIcon ButtonMulti SelectNumber InputRadioSearch InputSelectSliderSlug InputSwitchTag InputTextareaText Input

Icon Button

Button with only an icon and no label.

#

#

This is a default variant. Most likely this is the only format you'll need to use.

#

Secondary icon button looks nearly the same as a ghost variant, except it has a light gray border. This variant looks good near text labels. It's named "secondary" for consistency with Button component.

#

#

#

#

#

  • Only use icons from Heroicons.
  • Don't override icon size.
  • Prefer outline icons over solid ones.

#

Inherits margin props.

#

Type: boolean
Default: false

Toggles the disabled state.

#

Type: string

Button's meaning for screen readers.

#

Type: ComponentType<SVGAttributes<SVGElement>>

Button icon.

#

Type: () => void

Callback for when button is clicked.

On this page

  • Usage
  • Ghost
  • Secondary
  • Loading
  • Large
  • Small
  • Guidelines
  • Icons
  • Props
  • isDisabled
  • aria-label
  • icon
  • onClick