warning_amberDeprecated
The ExpandableList component is deprecated and will be removed in future releases.
Please use Menu instead.
Usage
Import
import { ExpandableList, ExpandableListItem } from '@passfort/castle'
Example
<ExpandableList>
<ExpandableListItem renderTitle={() => <Text bold>title</Text>}>
<Text>Content</Text>
</ExpandableListItem>
<ExpandableListItem renderTitle={() => <Text bold>title</Text>}>
<Text>Content</Text>
</ExpandableListItem>
<ExpandableListItem renderTitle={() => <Text bold>title</Text>}>
<Text>Content</Text>
</ExpandableListItem>
</ExpandableList>
live example
Multiple Groups
<Stack spacing={4}>
<ExpandableList>
<ExpandableListItem renderTitle={() => <Text>title</Text>}>
<Text>Content</Text>
</ExpandableListItem>
<ExpandableListItem renderTitle={() => <Text>title</Text>}>
<Text>Content</Text>
</ExpandableListItem>
<ExpandableListItem renderTitle={() => <Text>title</Text>}>
<Text>Content</Text>
</ExpandableListItem>
</ExpandableList>
<ExpandableList>
<ExpandableListItem renderTitle={() => <Text>title</Text>}>
<Text>Content</Text>
</ExpandableListItem>
<ExpandableListItem renderTitle={() => <Text>title</Text>}>
<Text>Content</Text>
</ExpandableListItem>
<ExpandableListItem renderTitle={() => <Text>title</Text>}>
<Text>Content</Text>
</ExpandableListItem>
</ExpandableList>
</Stack>
live example