Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Collapsible] Implement Collapsible #84

Closed
danilo-leal opened this issue Feb 5, 2024 · 1 comment · Fixed by #481
Closed

[Collapsible] Implement Collapsible #84

danilo-leal opened this issue Feb 5, 2024 · 1 comment · Fixed by #481
Assignees
Labels
component: collapsible This is the name of the generic UI component, not the React module! new feature New feature or request

Comments

@danilo-leal
Copy link
Contributor

danilo-leal commented Feb 5, 2024

API

// JSX
<Collapsible.Root defaultOpen={false}>  // or `open` for controlled mode
  <Collapsible.Trigger className="MyCollapsible-trigger">
    Trigger
  </Collapsible.Trigger>
  
  <Collapsible.Content className="MyCollapsible-content">
    This the collapsed content
  </Collapsible.Content>
</Accordion.Root>

// HTML
<button
  type="button"
  aria-controls="ContentId"
  aria-expanded="false"
  class="MyCollapsible-trigger"
>
  Trigger
</button>

<div class="MyCollapsible-content" id="ContentId" hidden="hidden">
  This the collapsed content
</div>
@danilo-leal danilo-leal added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 5, 2024
@michaldudak michaldudak transferred this issue from mui/material-ui Feb 27, 2024
@michaldudak michaldudak changed the title [base-ui][Collapsible] Create the unstyled component [Collapsible] Create the unstyled component Feb 27, 2024
@michaldudak michaldudak added new feature New feature or request component: collapsible This is the name of the generic UI component, not the React module! labels Feb 27, 2024
@colmtuite colmtuite changed the title [Collapsible] Create the unstyled component [Collapsible] Implement Collapsible Mar 21, 2024
@colmtuite colmtuite assigned atomiks and unassigned atomiks Mar 21, 2024
@colmtuite colmtuite assigned atomiks and unassigned atomiks May 20, 2024
@mj12albert mj12albert self-assigned this Jul 11, 2024
@mj12albert
Copy link
Member

Bumping this to work on together with #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: collapsible This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants