Deepyr
palette arrow_drop_down
    • Light
    • Dark
    • Cupcake
    • Bumblebee
    • Emerald
    • Corporate
    • Synthwave
    • Retro
    • Cyberpunk
    • Valentine
    • Halloween
    • Garden
    • Forest
    • Aqua
    • Lofi
    • Pastel
    • Fantasy
    • Wireframe
    • Black
    • Luxury
    • Dracula
    • Cmyk
    • Autumn
    • Business
    • Acid
    • Lemonade
    • Night
    • Coffee
    • Winter
    • Dim
    • Nord
    • Sunset

Breadcrumbs

The Breadcrumbs component automatically wraps each child in an <li> tag.

  • Home
  • Documents
  • Add Document
Breadcrumbs(
  style: [TextUtil.sm],
  [
    Link([text('Home')], href: '#', style: [Link.hover]),
    Link([text('Documents')], href: '#', style: [Link.hover]),
    span([text('Add Document')]),
  ],
)

Breadcrumbs with icons

  • Home
  • Documents
  • Add Document
// Helper function to create the SVG icon component
Component _folderIcon() => svg(
  // ... svg attributes and path
);

Breadcrumbs(
  style: [TextUtil.sm],
  [
    Link(
      [
        _folderIcon(),
        text('Home'),
      ],
      href: '#',
      style: [Link.hover, Layout.inlineFlex, Layout.gap2, Alignment.itemsCenter],
    ),
    Link(
      [
        _folderIcon(),
        text('Documents'),
      ],
      href: '#',
      style: [Link.hover, Layout.inlineFlex, Layout.gap2, Alignment.itemsCenter],
    ),
    span(
      [
        _addDocumentIcon(),
        text('Add Document'),
      ],
      classes: [Layout.inlineFlex, Layout.gap2, Alignment.itemsCenter].toClasses(),
    ),
  ],
)

Breadcrumbs with max-width

If the list gets larger than the container, it will scroll horizontally.

  • Long text 1
  • Long text 2
  • Long text 3
  • Long text 4
  • Long text 5
Breadcrumbs(
  style: [Size.maxWxs, TextUtil.sm],
  [
    span([text('Long text 1')]),
    span([text('Long text 2')]),
    span([text('Long text 3')]),
    span([text('Long text 4')]),
    span([text('Long text 5')]),
  ],
)
  • Actions
    • Button
    • Dropdown
    • Modal
    • Swap
  • Data Input
    • Checkbox
    • Fieldset
    • File Input
    • Label
    • Radio
    • Range
    • Select
    • Input
    • Textarea
    • Toggle
    • Validator
  • Data Display
    • Accordion
    • Avatar
    • Badge
    • Card
    • Collapse
    • Diff
    • Icon
    • Indicator
    • Kbd
    • TableNew
  • Layout
    • Divider
    • Drawer
    • Footer
    • Hero
    • Join
    • MaskNew
  • Feedback
    • Alert
    • Loading
    • Progress
    • Skeleton
    • Tooltip
  • Navigation
    • Breadcrumbs
    • Link
    • Menu
    • Navbar
    • Pagination
    • Tabs