DaisyButton
Versatile button control with 11 variants, multiple styles, shapes, and sizes.Basic Usage
Variants
- Solid
- Outline
- Ghost & Link
Sizes
Shapes
Styles
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Variant | DaisyButtonVariant | Default | Color variant (Primary, Secondary, etc.) |
ButtonStyle | DaisyButtonStyle | Default | Visual style (Outline, Soft, Dash) |
Shape | DaisyButtonShape | Default | Button shape (Wide, Block, Square, Circle) |
Size | DaisySize | Medium | Button size |
IsActive | bool | false | Shows active/pressed state |
NoAnimation | bool | false | Disables click animation |
DaisyFab
Floating Action Button with speed dial support for multiple actions.Basic Usage
With Multiple Actions (Speed Dial)
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Variant | DaisyButtonVariant | Primary | Color variant |
Icon | string | null | SVG path data for icon |
Size | DaisySize | Large | FAB size |
Position | DaisyFabPosition | BottomRight | Screen position |
DaisyModal
Dialog box with backdrop overlay, keyboard support, and optional dragging.Basic Usage
Opening and Closing
Modal Variants
- Standard
- With Backdrop
- Draggable
Properties
| Property | Type | Default | Description |
|---|---|---|---|
IsOpen | bool | false | Controls modal visibility |
ShowBackdrop | bool | true | Shows dimmed backdrop overlay |
CloseOnBackdropClick | bool | true | Closes when clicking backdrop |
CloseOnEscape | bool | true | Closes on Escape key |
IsDraggable | bool | false | Enables modal dragging |
ShowGrabBar | bool | false | Shows drag handle |
BackdropOpacity | double | 0.5 | Backdrop opacity (0-1) |
Events
DaisySwap
Toggle control that swaps between two content states with optional animations.Basic Usage
With Effects
- Rotate
- Flip
Properties
| Property | Type | Default | Description |
|---|---|---|---|
IsSwapped | bool | false | Current swap state |
Effect | DaisySwapEffect | None | Animation effect (None, Rotate, Flip) |
OnContent | object | null | Content shown when swapped |
OffContent | object | null | Content shown when not swapped |
Events
Next Steps
Data Display
Explore display components
Data Input
Learn about form controls

