• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
      • Overview
      • Getting Started
      • ActionSheet
      • AppBar
      • Avatar
      • BottomNavigation
      • Breadcrumb
      • Card
      • Drawer
      • ExpansionPanel
      • GridLayout
      • Menu
      • Context Menu
      • PanelBar
      • Splitter
      • StackLayout
      • TabStrip
      • Stepper
      • TileLayoutupdated
      • Timeline
      • Globalization
      • API
    • ListBox
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

DrawerItem

Represents the KendoReact Drawer component.

A Functional 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'));
NameTypeDefaultDescription

props

Omit<DrawerItemProps> intersected with RefAttributes<undefined>

The props of the DrawerItem component.

In this article

Not finding the help you need?