Import
Usage
Props
Controls the chevron rotation. When true, the chevron rotates 180 degrees.
When true, the chevron rotates on hover instead of requiring the
opened prop.Object-based class names for conditional styling.
All standard HTML button attributes are supported (except the standard
class prop).Examples
Behavior
The chevron icon automatically rotates 180 degrees when opened or on hover/focus. The rotation uses smooth transitions with motion-safe support. Focus-within also triggers rotation for keyboard accessibility.
Styling
The component includes:group lum-btn- Button styling with group contextflex-1 text-left- Left-aligned text that fills available space- Chevron icon with smooth
ease-outtransitions - Faster transition on hover/focus (
duration-75vsduration-300)
Accessibility
The button type is set tobutton by default to prevent form submission. The component responds to both hover and focus-within states for keyboard navigation.