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

CompareImage

Updated: May 4, 2025
View on GitHub
The CompareImage component supports ReactNode for the content.
Prop
Type
Default
leftContentrequired
What shows on the left of the divider.
SideContent
rightContentrequired
What shows on the right.
SideContent
aspectRatio
Frame ratio, held as the width changes.
string
unoptimized
Skip the framework image optimizer.
boolean
…and every FlexProps propinherited
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club