Back to React Native Paper

ListAccordion

docs/public/1.0/list-accordion.html

5.15.1915 B
Original Source

ListAccordion

ListAccordion can be used to display an expandable list item.

Usage

js
import * as React from 'react';
import { ListAccordion, ListItem, Checkbox } from 'react-native-paper';

const MyComponent = () => (
  <ListAccordion
    title="Accordion"
    icon="folder"
  >
    <ListItem title="First item" />
    <ListItem title="Second item" />
  </ListAccordion>
);

Props

title (required) Type: React.Node

Title text for the list accordion.

description Type: React.Node

Description text for the list accordion.

icon Type: React.Node

Icon to display for the ListAccordion.

children (required) Type: React.Node

Content of the section.

theme Type: Theme

style Type: any