Skip to main content

Drawer.CollapsedItem

Collapsed component used to show an action item with an icon and optionally label in a navigation drawer.

How to use

import * as React from 'react';
import {Drawer} from '@gyri/native-ui-components';

const MyComponent = ({className}) => (
<Drawer.CollapsedItem
className={className}
focusedIcon="inbox"
unfocusedIcon="inbox-outline"
label="Inbox"
/>
);

export default MyComponent;

Props

#NameData typeDefault valueValuesDescription
1stylestringIt allows you to style your components
2classNamestring''It defined external CSS stylesheet.
3labelstringThe label text of the item.
4disabledWhether the item is disabled.
5badgestring, number, booleanfalseBadge to show on the icon, can be true to show a dot, string or number to show text.
6disabledbooleanWhether the item is disabled.

For more detail visit https://callstack.github.io/react-native-paper/docs/components/Drawer/DrawerCollapsedItem/