Skip to content

Collapse

Pro

Content that opens and folds on its height, as an accordion when two switch together: reply fields, answers, more filters. Not an M3 component (@windmorph/react-pro).

import { Collapse } from '@windmorph/react-pro';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Playground

Yes, one guest per member. Add their name when you book, so there's a seat for them.

Code

import { useState } from 'react';import { Collapse } from '@windmorph/react-pro'; export function Example() {  const [open, setOpen] = useState(true);   return (    <Collapse      open={open}      onOpenChange={setOpen}    >      <p className="px-3 pb-3 text-body-medium text-on-surface-variant">        Yes, one guest per member.      </p>    </Collapse>  );}

Examples

One reply field at a time

A question and its answer

Open from the start

Found by find-in-page