Collapsible

An interactive component which expands/collapses a panel.

Order #4189

StatusShipped

Shipping address

100 Market St, San Francisco

Items

2x Studio Headphones

Installation

ng g @spartan-ng/cli:ui collapsible

Usage

import { HlmCollapsibleImports } from '@spartan-ng/helm/collapsible';
<hlm-collapsible>
  <button hlmCollapsibleTrigger>Can I use this in my project?</button>
  <hlm-collapsible-content> Yes. Free to use for personal and commercial projects. No attribution required. </hlm-collapsible-content>
</hlm-collapsible>

Examples

Animated

You can use the data-state and Tailwind classes to control the animation of the collapsible.

@peduarte starred 3 repositories

@radix-ui/primitives
@radix-ui/colors
@stitches/react

Settings Panel

Radius

Set the corner radius of the element.

RTL

To enable RTL support in spartan-ng, see the RTL configuration guide.

الطلب #4189

الحالةتم الشحن

عنوان الشحن

100 Market St, San Francisco

العناصر

2x سماعات الاستوديو

Brain API

BrnCollapsibleContent

Selector: [brnCollapsibleContent],brn-collapsible-content

Inputs

PropTypeDefaultDescription
id string | null | undefined - The id of the collapsible content element.

BrnCollapsibleTrigger

Selector: button[brnCollapsibleTrigger]

Inputs

PropTypeDefaultDescription
type 'button' | 'submit' | 'reset' button -

BrnCollapsible

Selector: [brnCollapsible],brn-collapsible

ExportAs: brnCollapsible

Inputs

PropTypeDefaultDescription
disabled boolean false The disabled state of the collapsible component.
expanded boolean false The expanded or collapsed state of the collapsible component.

Outputs

PropTypeDefaultDescription
expandedChange boolean false The expanded or collapsed state of the collapsible component.

Helm API

HlmCollapsibleContent

Selector: [hlmCollapsibleContent],hlm-collapsible-content

HlmCollapsibleTrigger

Selector: button[hlmCollapsibleTrigger]

HlmCollapsible

Selector: [hlmCollapsible],hlm-collapsible

Combobox Checkbox