new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

shadcn/ui · Components · all subjects

collapsible/props

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Collapsible controlled state props

Use the isExpanded prop to set the expanded state and the onExpandedChange prop to handle state changes in a controlled Collapsible component.

Collapsible controlled state example

Example of controlled Collapsible: const [open, setOpen] = React.useState(false); <Collapsible isExpanded={open} onExpandedChange={setOpen}><CollapsibleTrigger>Toggle</CollapsibleTrigger><CollapsibleContent>Content</CollapsibleContent></Collapsible>

Collapsible controlled state props

To control Collapsible state, use the `open` prop (boolean) and `onOpenChange` callback prop to manage the open state.

Collapsible API documentation

For detailed API reference information about Collapsible props and options, see the Base UI documentation at https://base-ui.com/react/components/collapsible#api-reference

Collapsible controlled state with open prop

Control the collapsible open state using the open and onOpenChange props. Example: <Collapsible open={open} onOpenChange={setOpen}><CollapsibleTrigger>Toggle</CollapsibleTrigger><CollapsibleContent>Content</CollapsibleContent></Collapsible>

Give your agent this brain