DrawerContent
Component
Represents the KendoReact Drawer component.
Definition
Package:@progress/kendo-react-layout
Syntax:
jsx
const App = () => {
const items = [
{ text: 'Inbox', icon: 'k-i-inbox', selected: true },
{ separator: true },
{ text: 'Notifications', icon: 'k-i-bell', disabled: true },
{ text: 'Calendar', icon: 'k-i-calendar' },
{ separator: true },
{ text: 'Attachments', icon: 'k-i-hyperlink-email' },
{ text: 'Favourites', icon: 'k-i-star' }
];
const [expanded, setExpanded] = React.useState(true);
const handleClick = () => setExpanded(prevState => !prevState);
return (
<Drawer expanded={expanded} position='start' mode='push' items={items}>
<DrawerContent>
<Button onClick={handleClick}>Toggle the drawer state</Button>
</DrawerContent>
</Drawer>
);
};
Properties
props
DrawerContentProps intersected with RefAttributes<null | DrawerContentHandle>
The props of the DrawerContent component.