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

Collapse

A panel that folds under its trigger. A button and a region, not <details>: the height animates and the state is the button's aria-expanded. Stack several in an Accordion.

ClassEffectType
.collapse
The frame; two grid rows, the second folding from 0fr to 1fr. root
.collapse-ghost
Sets variant, one class per value. axis variant
.collapse-arrow
Written by the arrow prop. flag
.collapse-plus
Written by the plus prop. flag
.collapse-inner
The padding inside the panel (the panel itself must stay unpadded to fold to zero). part
.collapse-panel
The region that folds; inert when closed. part
.collapse-trigger
The button. Its aria-expanded is the state the stylesheet reads. part