XiodUI
HomeDocs
OverviewComponentsStyling & CustomizationChangelog

Components

  • Accordion
  • Agent Steps
  • Alert
  • Alert Dialog
  • Aspect Ratio
  • Autocomplete
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Button Split
  • Calendar
  • Card
  • Carousel
  • Checkbox
  • Circular Progress
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy To Clipboard
  • Corner Badge
  • Dashboard Grid
  • Date Picker
  • Dialog
  • Dot Matrix
  • Draggable
    Updated
  • Drawer
  • Empty
  • Field
  • Fieldset
  • File Upload
    Updated
  • Form
  • Frame
  • Gauge
  • Grid
  • Group
  • Input
  • Input Group
  • Input OTP
  • Input Payment
  • Input Phone
    Updated
  • Input Sensitive
  • Kbd
  • Kinetic Click
  • Label
  • List Box
    Updated
  • Loader
  • Marker
  • Menu
  • Menubar
  • Message
  • Meter
  • Morphic Toast
  • Navigation Menu
  • Number Field
  • Option Picker
  • Orb
  • Pagination
  • Popover
  • Preview Card
    Updated
  • Progress
  • Radio
  • Resizable
  • Ruler Picker
  • Scroll Area
  • Scroll Bar
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sortable
  • Switch
  • Table
  • Tabs
  • Text
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Toolbar
  • Tooltip
  • Waveform
  • Wheel Picker

Loading...

Preview Skeleton

Installation Skeleton

Usage Skeleton

API Reference Skeleton

Sponsors

Support the development of XiodUI and help us build the best component library on Earth.

+++
Sponsor on GitHub

Collapsible

Previous: Circular ProgressNext: Color Picker

A panel that opens and closes from a trigger.

Preview

Loading Preview...

Installation

bun add xiod-ui

Usage

Imports

1import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "xiod-ui/collapsible";

Anatomy

1<Collapsible>2  <CollapsibleTrigger />3  <CollapsiblePanel />4</Collapsible>

API Reference

Detailed documentation of properties and options.

Collapsible

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
defaultOpen
boolean
false

Whether the collapsible panel is initially open.

To render a controlled collapsible, use the open prop instead.

disabled
boolean
false

Whether the component should ignore user interaction.

onOpenChange

CollapsiblePanel

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
hiddenUntilFound
boolean
false

Allows the browser's built-in page search to find and expand the panel contents.

Overrides the keepMounted prop and uses hidden="until-found" to hide the element without removing it from the DOM.

CollapsibleTrigger

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
nativeButton
boolean
true

Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (for example, <div>

Circular ProgressColor Picker
((open: boolean, eventDetails: CollapsibleRootChangeEventDetails) => void)
–

Event handler called when the panel is opened or closed.

open
boolean
–

Whether the collapsible panel is currently open.

To render an uncontrolled collapsible, use the defaultOpen prop instead.

keepMounted
boolean
false

Whether to keep the element in the DOM while the panel is hidden. This prop is ignored when hiddenUntilFound is used.

).