Sépale
Components Docs Theme generator Prefix About GitHub npm
  • Family
  • Family
  • Theme

  • Guide
  • Getting started
  • Families and themes
  • Components and classes
  • Svelte components
  • Motion
  • Your own styles
  • Class prefix
  • Family
  • Description
  • Theme generator
  • Components
  • All components
    • Button
    • Link
    • Join
    • Input
    • Textarea
    • Select
    • Combobox
    • Number input
    • Date picker
    • Calendar
    • Color picker
    • File input
    • File dropzone
    • Checkbox
    • Radio
    • Toggle
    • Switch
    • Range
    • Rating
    • Chips input
    • Editable
    • Label
    • Floating label
    • Fieldset
    • Validator
    • Text
    • Avatar
    • Badge
    • Chip
    • Swatch
    • Bubble
    • Card
    • Stat
    • Carousel
    • Alert
    • Toast
    • Loading
    • Progress
    • Radial progress
    • Skeleton
    • Empty state
    • Data handler
    • Data control
    • Table
    • Grid
    • List
    • Kanban
    • File explorer
    • Menu
    • Tabs
    • Breadcrumbs
    • Steps
    • Pagination
    • Dock
    • Navbar
    • Sidebar
    • Drawer
    • Footer
    • Hero
    • Divider
    • Collapse
    • Accordion
    • Dialog
    • Dropdown
    • Tooltip
    • Mobile frame
    • Window frame
    • Laptop frame

Dropdown

A trigger and a box that floats next to it — a menu, a filter, a small form. The Svelte component places the box in fixed coordinates, so no scrolling ancestor crops it, and flips it when there is no room.

ClassEffectType
.dropdown
A trigger and a box that floats next to it — a menu, a filter, a small form. The Svelte component places the box in fixed coordinates, so no scrolling ancestor crops it, and flips it when there is no room. root
.dropdown-center.dropdown-end
Sets align, one class per value. axis align
.dropdown-top.dropdown-left.dropdown-right
Sets side, one class per value. axis side
.dropdown-xs.dropdown-sm.dropdown-md.dropdown-lg.dropdown-xl
Sets size, one class per value. axis size
.dropdown-content
The floating box. part
.dropdown-fixed
The box is placed in fixed coordinates by a script, and only shown when open. part
.dropdown-open
Shows the box. Written by the component; a <details open> or focus inside does the same without a script. part