Accordion
Controlled disclosure component for standalone expansion or coordinated AccordionGroup ownership.
Accordion has two state-ownership modes.
Standalone
The consumer owns expanded:
const [expanded, setExpanded] = useState(false);
<Accordion
title="Shipping"
expanded={expanded}
onExpandedChange={setExpanded}
>
<Text>Ships in 2–3 business days.</Text>
</Accordion>;There is no uncontrolled defaultExpanded mode in the current public API.
Grouped
Inside AccordionGroup, each direct Accordion uses a unique value and the group owns expansion state.
Single expandable item
const [value, setValue] = useState<string | null>("shipping");
<AccordionGroup value={value} onValueChange={setValue}>
<Accordion value="shipping" title="Shipping">
<Text>Shipping details</Text>
</Accordion>
<Accordion value="returns" title="Returns">
<Text>Return details</Text>
</Accordion>
</AccordionGroup>;Single-mode AccordionGroup is deselectable by design, so the currently expanded item can collapse back to null.
Multiple expanded items
const [values, setValues] = useState<string[]>([]);
<AccordionGroup multiple values={values} onValuesChange={setValues}>
<Accordion value="shipping" title="Shipping">
<Text>Shipping details</Text>
</Accordion>
<Accordion value="returns" title="Returns">
<Text>Return details</Text>
</Accordion>
</AccordionGroup>;AccordionGroup accepts only direct Accordion children. Every rendered child needs a unique value; invalid child types or duplicate values are treated as clear architecture invariants.
Visual types
solid | border | transparenttype defaults to "transparent".
Icons
Use either a built-in ARCUI icon name or completely custom content:
<Accordion title="Details" icon="info" expanded={expanded} /><Accordion
title="Details"
customIcon={<BrandGlyph />}
expanded={expanded}
/>icon and customIcon are mutually exclusive.
Disabled state
disabled prevents user interaction without changing the current semantic expanded state.

Text limits
titleNumberOfLines and subtitleNumberOfLines override token-backed limits. 0 means unlimited.
Testing
Use testID where the public component contract exposes it so application tests can target the ARCUI-owned root without depending on visual implementation details. Component-specific stable descendants may use documented suffixes.
For provider setup and the dedicated react-native-arc-ui/testing entrypoint, see Testing.
API Reference
IAccordion
Standalone Accordion · variant 1
Also inherits: Pick<
PressableProps,
"accessibilityLabel" | "accessibilityHint"
>
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | — |
| title | string | required | — |
| subtitle? | string | — | — |
| type? | TAccordionType | "transparent" | Visual presentation. |
| colors? | Readonly<IAccordionColors> | — | Per-instance ARCUI-owned color overrides. Partial overrides fall back to the selected Accordion type tokens. |
| disabled? | boolean | false | Prevents user interaction without changing the current expanded state. |
| onExpandedChange? | (expanded: boolean) => void | — | Called when Accordion requests an expanded-state change. Standalone: the consumer owns `expanded` and receives the requested next state. SelectionGroup / AccordionGroup: optional child-level notification after the group resolves the requested selected state for this Accordion value. In a controlled group, this callback does not imply that the parent has already committed the requested group state. |
| titleNumberOfLines? | number | — | Maximum number of title lines. 0 means unlimited. Falls back to tokens.sizings.accordion.titleNumberOfLines. |
| subtitleNumberOfLines? | number | — | Maximum number of subtitle lines. 0 means unlimited. Falls back to tokens.sizings.accordion.subtitleNumberOfLines. |
| style? | StyleProp<ViewStyle> | — | — |
| testID? | string | — | — |
| icon? | IIcon["type"] | — | Built-in ARCUI icon. |
| expanded | boolean | required | Standalone semantic expansion state. The consumer is the source of truth. |
Grouped Accordion · variant 1
Also inherits: Pick<
PressableProps,
"accessibilityLabel" | "accessibilityHint"
>
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | — |
| title | string | required | — |
| subtitle? | string | — | — |
| type? | TAccordionType | "transparent" | Visual presentation. |
| colors? | Readonly<IAccordionColors> | — | Per-instance ARCUI-owned color overrides. Partial overrides fall back to the selected Accordion type tokens. |
| disabled? | boolean | false | Prevents user interaction without changing the current expanded state. |
| onExpandedChange? | (expanded: boolean) => void | — | Called when Accordion requests an expanded-state change. Standalone: the consumer owns `expanded` and receives the requested next state. SelectionGroup / AccordionGroup: optional child-level notification after the group resolves the requested selected state for this Accordion value. In a controlled group, this callback does not imply that the parent has already committed the requested group state. |
| titleNumberOfLines? | number | — | Maximum number of title lines. 0 means unlimited. Falls back to tokens.sizings.accordion.titleNumberOfLines. |
| subtitleNumberOfLines? | number | — | Maximum number of subtitle lines. 0 means unlimited. Falls back to tokens.sizings.accordion.subtitleNumberOfLines. |
| style? | StyleProp<ViewStyle> | — | — |
| testID? | string | — | — |
| icon? | IIcon["type"] | — | Built-in ARCUI icon. |
| value | TSelectionValue | required | Selection identity when Accordion participates in SelectionGroup or AccordionGroup. The group owns the expanded state. |
Standalone Accordion · variant 2
Also inherits: Pick<
PressableProps,
"accessibilityLabel" | "accessibilityHint"
>
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | — |
| title | string | required | — |
| subtitle? | string | — | — |
| type? | TAccordionType | "transparent" | Visual presentation. |
| colors? | Readonly<IAccordionColors> | — | Per-instance ARCUI-owned color overrides. Partial overrides fall back to the selected Accordion type tokens. |
| disabled? | boolean | false | Prevents user interaction without changing the current expanded state. |
| onExpandedChange? | (expanded: boolean) => void | — | Called when Accordion requests an expanded-state change. Standalone: the consumer owns `expanded` and receives the requested next state. SelectionGroup / AccordionGroup: optional child-level notification after the group resolves the requested selected state for this Accordion value. In a controlled group, this callback does not imply that the parent has already committed the requested group state. |
| titleNumberOfLines? | number | — | Maximum number of title lines. 0 means unlimited. Falls back to tokens.sizings.accordion.titleNumberOfLines. |
| subtitleNumberOfLines? | number | — | Maximum number of subtitle lines. 0 means unlimited. Falls back to tokens.sizings.accordion.subtitleNumberOfLines. |
| style? | StyleProp<ViewStyle> | — | — |
| testID? | string | — | — |
| customIcon? | ReactNode | — | Consumer-owned custom icon content. Useful for custom SVG icons or other arbitrary React content. |
| expanded | boolean | required | Standalone semantic expansion state. The consumer is the source of truth. |
Grouped Accordion · variant 2
Also inherits: Pick<
PressableProps,
"accessibilityLabel" | "accessibilityHint"
>
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | — |
| title | string | required | — |
| subtitle? | string | — | — |
| type? | TAccordionType | "transparent" | Visual presentation. |
| colors? | Readonly<IAccordionColors> | — | Per-instance ARCUI-owned color overrides. Partial overrides fall back to the selected Accordion type tokens. |
| disabled? | boolean | false | Prevents user interaction without changing the current expanded state. |
| onExpandedChange? | (expanded: boolean) => void | — | Called when Accordion requests an expanded-state change. Standalone: the consumer owns `expanded` and receives the requested next state. SelectionGroup / AccordionGroup: optional child-level notification after the group resolves the requested selected state for this Accordion value. In a controlled group, this callback does not imply that the parent has already committed the requested group state. |
| titleNumberOfLines? | number | — | Maximum number of title lines. 0 means unlimited. Falls back to tokens.sizings.accordion.titleNumberOfLines. |
| subtitleNumberOfLines? | number | — | Maximum number of subtitle lines. 0 means unlimited. Falls back to tokens.sizings.accordion.subtitleNumberOfLines. |
| style? | StyleProp<ViewStyle> | — | — |
| testID? | string | — | — |
| customIcon? | ReactNode | — | Consumer-owned custom icon content. Useful for custom SVG icons or other arbitrary React content. |
| value | TSelectionValue | required | Selection identity when Accordion participates in SelectionGroup or AccordionGroup. The group owns the expanded state. |
Per-instance color slots: IAccordionColors
| Prop | Type | Default | Description |
|---|---|---|---|
| background? | Readonly<IAccordionStateColors> | — | — |
| border? | Readonly<IAccordionStateColors> | — | — |
| title? | Readonly<IAccordionStateColors> | — | — |
| subtitle? | Readonly<IAccordionStateColors> | — | — |
| icon? | Readonly<IAccordionStateColors> | — | — |
Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
IAccordionGroup
Single Selection Group
Also inherits: Omit<ViewProps, "children" | "ref">
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | AccordionGroup accepts direct Accordion children. Empty conditional children are allowed, but other rendered element types are rejected because they would incorrectly participate in the internal SelectionGroup context. |
| ref? | Ref<View> | — | Native SelectionGroup container ref. |
| multiple? | false | false | Single-selection mode. |
| value | TSelectionValue | null | required | Current selected value. SelectionGroup is controlled. The consumer owns this state. null represents no selection. |
| onValueChange? | (value: TSelectionValue | null) => void | — | Called when SelectionGroup requests a selected-value change. |
Multiple Selection Group
Also inherits: Omit<ViewProps, "children" | "ref">
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | AccordionGroup accepts direct Accordion children. Empty conditional children are allowed, but other rendered element types are rejected because they would incorrectly participate in the internal SelectionGroup context. |
| ref? | Ref<View> | — | Native SelectionGroup container ref. |
| multiple | true | required | Enables multiple-selection mode. |
| values | readonly TSelectionValue[] | required | Current selected values. SelectionGroup is controlled. The consumer owns this state. |
| onValuesChange? | (values: TSelectionValue[]) => void | — | Called when SelectionGroup requests a selected-values change. |
Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
The generated table above covers ARCUI-owned public props from the source-aligned type snapshot. Native inherited surfaces remain available where the public type extends React Native props.
Motion
Accordion expansion semantics stay controlled. Header state, disclosure presentation, and layout/content transitions are coordinated with Reanimated and ARCUI Reduced Motion behavior.
See Motion for the library-wide model.
Performance
Keep application semantics at normal React update cadence. ARCUI components avoid using React state as a frame-by-frame animation driver; use the component callbacks and let Reanimated own continuous visual work.
See Performance for broader guidance.
Accessibility
ARCUI uses native roles, labels, semantic accessibility state, centralized font scaling, and localizable ARCUI-owned strings where the component owns behavior text. Consumer accessibility overrides remain available when they do not conflict with component correctness.
See Accessibility for the library-wide model.
Theming
This component resolves its normal presentation from ARCUI tokens and active theme context. Prefer token configuration for system-wide design changes and component props for genuine instance-level exceptions.
Relevant token areas include:
colors.*.accordion
sizings.accordion
radius.accordion
border.accordion
accordionAnimations
animationsTop-level token overrides are shallow. Compose changed built-in namespaces from defaultTokens rather than relying on recursive merge behavior.
Try it live
Open the existing React Native Snack to explore Accordion interactively.
