2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

IconButton

Updated: June 30, 2026
View on GitHub
The IconButton component provides a compact, icon-based interactive element for user actions. It's ideal for toolbar actions, navigation controls, and other UI elements where space is limited. IconButtons come in different sizes to accommodate various use cases. Add tooltips to provide context for icon buttons. Customize the border radius of the IconButton for different design needs. IconButtons can function as links when provided with an href property. Use the children prop to add custom content to the IconButton.
Prop
Type
Default
icon
IconNamerefresh
id
string
size
xllmsxs
m
corners
nonetoprightbottomlefttop-lefttop-rightbottom-rightbottom-left
rounded
Fully rounded corners.
booleanfalse
tooltip
ReactNode
tooltipPosition
topbottomleftright
top
variant
primarysecondarytertiaryquaternarysubtledangersuccesswarningghostlink
primary
loading
Swap the icon for a spinner and block interaction.
booleanfalse
disabled
booleanfalse
className
string
style
React.CSSProperties
href
string
children
React.ReactNode
color
`${ColorScheme}-${ColorWeight}`
…and every React.ButtonHTMLAttributes propinherited
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club