Tooltip
| Modifier | DaisyUI class |
|---|---|
| :open | tooltip-open |
| :top | tooltip-top |
| :bottom | tooltip-bottom |
| :left | tooltip-left |
| :right | tooltip-right |
| :primary | tooltip-primary |
| :secondary | tooltip-secondary |
| :accent | tooltip-accent |
| :info | tooltip-info |
| :success | tooltip-success |
| :warning | tooltip-warning |
| :error | tooltip-error |
# Tooltip
1 Tooltip tip: "hello" do 2 Button do 3"Hover me" 4end 5end
# Force open
1 Tooltip :open, tip: "hello" do 2 Button do 3"Force open" 4end 5end
# Top
1 Tooltip :open, :top, tip: "hello" do 2 Button do 3"Top" 4end 5end
# Bottom
1 Tooltip :open, :bottom, tip: "hello" do 2 Button do 3"Bottom" 4end 5end
# Left
1 Tooltip :open, :left, tip: "hello" do 2 Button do 3"Left" 4end 5end
# Right
1 Tooltip :open, :right, tip: "hello" do 2 Button do 3"Right" 4end 5end
# Primary
1 Tooltip :open, :primary, tip: "primary" do 2 Button :primary do 3"primary" 4end 5end
# Secondary
1 Tooltip :open, :secondary, tip: "secondary" do 2 Button :secondary do 3"secondary" 4end 5end
# Accent
1 Tooltip :open, :accent, tip: "accent" do 2 Button :accent do 3"accent" 4end 5end
# Info
1 Tooltip :open, :info, tip: "info" do 2 Button :info do 3"info" 4end 5end
# Success
1 Tooltip :open, :success, tip: "success" do 2 Button :success do 3"success" 4end 5end
# Warning
1 Tooltip :open, :warning, tip: "warning" do 2 Button :warning do 3"warning" 4end 5end
# Error
1 Tooltip :open, :error, tip: "error" do 2 Button :error do 3"error" 4end 5end
# Responsive tooltip. Only visible on large screens.
1 Tooltip responsive: {lg: true}, tip: "hello" do 2 Button do 3"Hover me" 4end 5end