Conciergia UI

Collapsible

დამატებითი ინფორმაციის გაშლა და დაკეცვა.

მაგალითი

ნომერი 201 · 2 სტუმარი · საუზმით

ინსტალაცია

terminal
pnpm add @llc-conciergia/ui
იმპორტი
import {
  Collapsible,
  CollapsibleTrigger,
  CollapsibleContent,
} from "@llc-conciergia/ui/collapsible";

Props

Propტიპინაგულისხმევიაღწერა
Collapsible: open / defaultOpenboolean—კონტროლირებადი ან საწყისი გახსნა.
Collapsible: onOpenChange(open, details) => void—გახსნის ცვლილების დამმუშავებელი.
Collapsible: disabledboolean—ინტერაქციის გამორთვა.
CollapsibleTriggerBase UI Trigger props—კლავიატურით მართვადი ღილაკი; children, render, className, ref.
CollapsibleContent: keepMountedboolean—დახურული შიგთავსის DOM-ში შენარჩუნება.
CollapsibleContentBase UI Panel props—children, render, className, ref; სიმაღლის ანიმაცია.
CollapsibleBase UI Root props—მშობლიური div თვისებები და Base UI პარამეტრები.