Components
    • Animation
    • Buttons
    • Charts
    • Common Utilities
    • Conversational UI
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Grid
    • Indicators
    • Inputs
    • Labels
    • Layout
    • ListView
    • Notification
    • PDF Processing
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • Sortable
    • Tooltip
    • TreeList
    • TreeView
    • Upload
    Sample Applications
    Styling & Themes
    Common Features
    Project Setup
    Changelog

DrawerItem

Represents the KendoReact Drawer component.

   const App = () => {
     const [stateVisible, setStateVisible] = React.useState(true);
     const handleClick = () => { setStateVisible(prevState => !prevState); };

     return (
       <Drawer expanded={stateVisible} mode={'push'}>
           <DrawerNavigation>
               <DrawerItem text="Inbox" icon="k-i-inbox" />
               <DrawerItem separator={true} />
               <DrawerItem text="Notifications" icon="k-i-bell" disabled={true}/>
               <DrawerItem text="Calendar" icon="k-i-calendar"/>
               <DrawerItem separator={true} />
               <DrawerItem text="Attachments" icon="k-i-hyperlink-email" selected={true}/>
               <DrawerItem text="Favourites" icon="k-i-star-outline"/>
           </DrawerNavigation>
           <DrawerContent><button className="k-button" onClick={handleClick}>Toggle the drawer state</button></DrawerContent>
       </Drawer>
     );
   };

   ReactDOM.render(<App />, document.querySelector('my-app'));

In this article

Not finding the help you need?