DocSpace-buildtools/web/ASC.Web.Storybook/stories/drop-down/drop-down-item
2019-08-07 13:16:50 +03:00
..
drop-down-item.stories.js web: Components: Fixed DropDownItem story 2019-08-07 13:16:50 +03:00
README.md web: Components: Fixed DropDownItem story 2019-08-07 13:16:50 +03:00

DropDownItem

Usage

import { DropDownItem } from 'asc-web-components';

Description

Is a item of DropDown component

Usage

<DropDownItem 
    isSeparator={false}
    isHeader={false} 
    label='Button 1' 
    icon='NavLogoIcon' 
    onClick={() => console.log('Button 1 clicked')} />

Properties

Props Type Required Values Default Description
isSeparator bool - - false Tells when the dropdown item should display like separator
isHeader bool - - false Tells when the dropdown item should display like header
label string - - Dropdown item Dropdown item text
icon string - - - Dropdown item icon
onClick func - - - What the dropdown item will trigger when clicked
disabled bool - - false Tells when the dropdown item should display like disabled