New to KendoReactStart a free 30-day trial

DrawerContent

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

The props of the DrawerContent component.

In this article
DefinitionPropertiesprops
Not finding the help you need?
Contact Support