Components
Components
Button
Pressable action control with variants, sizes, and loading state.
newfree
Install
@hewnui/ui · hewnui
A concise action control built on React Aria. Press scale, focus rings, and loading feedback follow the global motion setting.
Usage
Variants
primary, secondary, outline, ghost, glass, soft, glow, danger, danger-outline, and danger-soft.
Sizes
sm (40px min height), md, and lg.
States
- Loading — sets
isDisabled, shows a spinner glyph - Disabled — reduces opacity and blocks pointer events
- Focus — visible ring using semantic
--kp-ring
Accessibility
- Native button semantics from React Aria
- Keyboard activation with Enter and Space
- Loading and disabled states expose
disabledto assistive tech
API reference
Props for Button from @hewnui/ui/button. Generated from component types — not hand-written.
Prop
Type