Back to Daisyui

Stack

skills/daisyui/components/stack.md

5.6.3484 B
Original Source

stack

Stack visually puts elements on top of each other

stack docs

Class Names:

  • Component: stack
  • Modifier: stack-top, stack-bottom, stack-start, stack-end

Syntax

html
<div class="stack {MODIFIER}">{CONTENT}</div>

Rules

  • {MODIFIER} is optional and can have one of the modifier class names
  • You can use w-* and h-* classes to set the width and height of the stack, making all items the same size