Skip to content
kapable

IconButton

Actions · 1 export · v0.1.0 · showcase

Native square button for glyph-only actions with a required accessible name and pending state.

Browse 72 component families

Usage

IconButton usage
<IconButton label="Refresh deploys">↻</IconButton>

API

IconButton API

IconButtonProps

IconButton props
proptypenotes
labelstringAccessible name for the icon-only control.
childrenRemixNodeIcon glyph; always hidden from the accessibility tree.
variant?'quiet' | 'secondary' | 'danger'
size?'sm' | 'md' | 'lg'
type?'button' | 'submit' | 'reset'
disabled?boolean
name?string
value?string
form?string
formAction?string
formEncType?string
formMethod?string
formNoValidate?boolean
formTarget?string
pending?booleanExternally controlled submission state.
pendingLabel?stringAccessible name while pending; defaults to `label`.
title?string
mix?MixInput

More in Actions

More in Actions