Collapsible

Show and hide a region with a trigger that keeps aria-expanded and aria-controls in sync.

Available in
  • Angular: available
  • Vue: available
  • React: available
  • React Native: available

Usage

Import

ts
import {
  SoneCollapsibleContentDirective,
  SoneCollapsibleDirective,
  SoneCollapsibleIconDirective,
  SoneCollapsibleTriggerDirective,
} from "@surface-one/angular/collapsible";

API reference

SoneCollapsibleContentDirectiveDirective

Selector
[soneCollapsibleContent]
Inputs
NameType Default
idstring | null | undefinedundefined

SoneCollapsibleDirectiveDirective

Selector
[soneCollapsible]
Export as
soneCollapsible
Inputs
NameType Default
expandedtwo-waybooleanfalse
disabledbooleanfalse

SoneCollapsibleIconDirectiveDirective

Selector
[soneCollapsibleIcon]

SoneCollapsibleTriggerDirectiveDirective

Selector
button[soneCollapsibleTrigger]
Inputs
NameType Default
type"button" | "submit" | "reset""button"