New to KendoReact? Start a free 30-day trial

Definition

Package:@progress/kendo-react-layout

Properties Interface:DrawerNavigationProps

Syntax:

jsx
  const App = () => {
      const [expanded, setExpanded] = React.useState(true);
      const handleClick = () => setExpanded(prevState => !prevState);

      return (
          <Drawer expanded={expanded} position='start' mode='push'>
              <DrawerNavigation>
                  <ul className="k-drawer-items">
                      <li className="k-drawer-item k-selected">
                          <span className="k-item-text">Home</span>
                      </li>
                      <li className="k-drawer-item">
                          <span className="k-item-text">Products</span>
                      </li>
                      <li className="k-drawer-item">
                          <span className="k-item-text">About</span>
                      </li>
                  </ul>
              </DrawerNavigation>
              <DrawerContent>
                  <Button onClick={handleClick}>Toggle the drawer state</Button>
              </DrawerContent>
          </Drawer>
      );
  };

Properties

Sets the DrawerNavigation items declaratively.

Specifies a list of CSS classes that will be added to the DrawerNavigation element.

style?

CSSProperties

Sets additional CSS styles to the DrawerNavigation.

In this article
DefinitionPropertieschildren?className?style?
Not finding the help you need?
Contact Support