|
| 1 | +{ |
| 2 | + "name": "AccordionRoot", |
| 3 | + "description": "Groups all parts of the accordion.\nRenders a `<div>` element.", |
| 4 | + "props": { |
| 5 | + "defaultValue": { |
| 6 | + "type": "Value[]", |
| 7 | + "description": "The uncontrolled value of the item(s) that should be initially expanded.\n\nTo render a controlled accordion, use the `value` prop instead.", |
| 8 | + "detailedType": "Value[] | undefined" |
| 9 | + }, |
| 10 | + "value": { |
| 11 | + "type": "Value[]", |
| 12 | + "description": "The controlled value of the item(s) that should be expanded.\n\nTo render an uncontrolled accordion, use the `defaultValue` prop instead.", |
| 13 | + "detailedType": "Value[] | undefined" |
| 14 | + }, |
| 15 | + "onValueChange": { |
| 16 | + "type": "((value: Value[], eventDetails: Accordion.Root.ChangeEventDetails) => void)", |
| 17 | + "description": "Event handler called when an accordion item is expanded or collapsed.\nProvides the new value as an argument.", |
| 18 | + "detailedType": "| ((\n value: Value[],\n eventDetails: Accordion.Root.ChangeEventDetails,\n ) => void)\n| undefined" |
| 19 | + }, |
| 20 | + "hiddenUntilFound": { |
| 21 | + "type": "boolean", |
| 22 | + "default": "false", |
| 23 | + "description": "Allows the browser’s built-in page search to find and expand the panel contents.\n\nOverrides the `keepMounted` prop and uses `hidden=\"until-found\"`\nto hide the element without removing it from the DOM.", |
| 24 | + "detailedType": "boolean | undefined" |
| 25 | + }, |
| 26 | + "loopFocus": { |
| 27 | + "type": "boolean", |
| 28 | + "default": "true", |
| 29 | + "description": "Whether to loop keyboard focus back to the first item\nwhen the end of the list is reached while using the arrow keys.", |
| 30 | + "detailedType": "boolean | undefined" |
| 31 | + }, |
| 32 | + "multiple": { |
| 33 | + "type": "boolean", |
| 34 | + "default": "false", |
| 35 | + "description": "Whether multiple items can be open at the same time.", |
| 36 | + "detailedType": "boolean | undefined" |
| 37 | + }, |
| 38 | + "disabled": { |
| 39 | + "type": "boolean", |
| 40 | + "default": "false", |
| 41 | + "description": "Whether the component should ignore user interaction.", |
| 42 | + "detailedType": "boolean | undefined" |
| 43 | + }, |
| 44 | + "orientation": { |
| 45 | + "type": "Orientation", |
| 46 | + "default": "'vertical'", |
| 47 | + "description": "The visual orientation of the accordion.\nControls whether roving focus uses left/right or up/down arrow keys.", |
| 48 | + "detailedType": "'horizontal' | 'vertical' | undefined" |
| 49 | + }, |
| 50 | + "className": { |
| 51 | + "type": "string | ((state: Accordion.Root.State<Value>) => string | undefined)", |
| 52 | + "description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state.", |
| 53 | + "detailedType": "| string\n| ((\n state: Accordion.Root.State<Value>,\n ) => string | undefined)" |
| 54 | + }, |
| 55 | + "style": { |
| 56 | + "type": "CSSProperties | ((state: Accordion.Root.State<Value>) => CSSProperties | undefined)", |
| 57 | + "description": "Style applied to the element, or a function that\nreturns a style object based on the component’s state.", |
| 58 | + "detailedType": "| React.CSSProperties\n| ((\n state: Accordion.Root.State<Value>,\n ) => CSSProperties | undefined)\n| undefined" |
| 59 | + }, |
| 60 | + "keepMounted": { |
| 61 | + "type": "boolean", |
| 62 | + "default": "false", |
| 63 | + "description": "Whether to keep the element in the DOM while the panel is closed.\nThis prop is ignored when `hiddenUntilFound` is used.", |
| 64 | + "detailedType": "boolean | undefined" |
| 65 | + }, |
| 66 | + "render": { |
| 67 | + "type": "ReactElement | ((props: HTMLProps, state: Accordion.Root.State<Value>) => ReactElement)", |
| 68 | + "description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.", |
| 69 | + "detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: Accordion.Root.State<Value>,\n ) => ReactElement)" |
| 70 | + } |
| 71 | + }, |
| 72 | + "dataAttributes": { |
| 73 | + "data-orientation": { |
| 74 | + "description": "Indicates the orientation of the accordion." |
| 75 | + }, |
| 76 | + "data-disabled": { |
| 77 | + "description": "Present when the accordion is disabled." |
| 78 | + } |
| 79 | + }, |
| 80 | + "cssVariables": {} |
| 81 | +} |
0 commit comments