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

ToggleButton

Updated: June 30, 2026
View on GitHub
ToggleButton provides a flexible button-like element that can act as a toggle, tab, or segmented control. It supports selected state, prefix/suffix icons, and optional link behavior. You can attach icons to the left or right using prefixIcon and suffixIcon. Available in extra small, small, medium, large, and extra large. Choose from ghost, outline, or subtle variants. Customize rounding for each side or corner. Customize content alignment. You can pass custom content to the toggle button.
Prop
Type
Default
label
ReactNode
selected
booleanfalse
variant
ghostoutlinesubtle
ghost
size
xllmsxs
m
radius
xllmsxsnonefull
corners
nonetoprightbottomlefttop-lefttop-rightbottom-rightbottom-left
rounded
Fully rounded corners.
booleanfalse
horizontal
startcenterendbetween
center
fillWidth
booleanfalse
weight
defaultstrong
default
truncate
booleanfalse
disabled
booleanfalse
prefixIcon
IconName
suffixIcon
IconName
className
string
style
React.CSSProperties
children
React.ReactNode
href
string
…and every React.ButtonHTMLAttributes propinherited
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club