Skip to content

Looser coupling on Expandable #177

@DasProffi

Description

@DasProffi

Describe the feature

The Expandable Component should have a loser coupling by making a new headless component Disclosure

  • making the DisclosureContent usable independent of the context
  • Remove all styling from the Content, Trigger and Root
  • Allow content expansion also in horizontal direction
  • Throw a warning if the Content is not in a Root that provides the contetx and the Content does not have a aria-controlledby set

Create a new component CollapsibleButton that takes the content as a child and builds the Disclosure automatically

Why is this feature needed?

Increasing the developer experience for using expandables

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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