DrawerItemProps
An interface for the Drawer items.
Definition
Package:@progress/kendo-react-layout
Properties
children?
any
Represents the children that are passed to the DrawerItem.
Example:
<DrawerItem>Item Content</DrawerItem>
className?
string
Specifies a list of CSS classes that will be added to the DrawerItem element.
disabled?
boolean
Specifies if the Drawer item is disabled.
Example:
<DrawerItem disabled={true} />
false
icon?
string
Defines the name for an existing icon in a KendoReact theme.
Example:
<DrawerItem icon="home" />
index?
number
Sets the index of the DrawerItem that is used to identify it.
Example:
<DrawerItem index={0} />
level?
number
This property is used in scenarios with hierarchical drawer. The rendering of the component requires each node to have a "k-level- + the level of nesting" className.
Example:
<DrawerItem level={1} />
selected?
boolean
Specifies if the Drawer item is initially selected.
Example:
<DrawerItem selected={true} />
false
separator?
boolean
Specifies if this is a separator item.
Example:
<DrawerItem separator={true} />
false
style?
CSSProperties
Sets additional CSS styles to the Drawer item.
svgIcon?
SVGIcon
Defines the SVG icon of the item.
Example:
import { gearIcon } from '@progress/kendo-svg-icons';
<DrawerItem svgIcon={gearIcon} />
tabIndex?
number
Sets the tabIndex property of the DrawerItem.
Example:
<DrawerItem tabIndex={1} />
0
text?
string
Specifies the text content of the Drawer item.
Example:
<DrawerItem text="Dashboard" />