Skip to content

Split expandable component #162

@DasProffi

Description

@DasProffi

Describe the feature

The expandable component should be split into 3 components:

ExpandableRoot

  • provides context
  • outside container

ExpandableHeader

  • is the label and reacts to clicks to open
  • provides data-isExpanded=<true|false>

ExpandableContent

  • use the content node for the expandable
  • provides data-isExpanded=<true|false>
  • content is hidden when not expanded

Why is this feature needed?

Délégation of concerns and easier styling

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions