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

Arrow

Updated: May 4, 2025
View on GitHub
A decorative arrow component that animates when a specified trigger element is hovered. It's useful for creating visual cues and enhancing interactive elements with subtle animations.
Prop
Type
Default
triggerrequired
CSS selector for the element it points from. It follows that element's hover.
string
scale
Arrow size, as a multiplier.
number0.8
color
Whether it draws for a background or a solid surface.
onBackgroundonSolid
onBackground
style
React.CSSProperties
className
string
…and every FlexProps propinherited
  • The trigger prop must be a valid CSS selector (e.g., #element-id, .element-class)
  • The arrow will animate when the user hovers over the element specified by the trigger selector
  • Use the scale prop to adjust the size of the arrow to fit your design
  • The color prop allows you to choose between styles optimized for light or dark backgrounds
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club