Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

dropdown

v0.0.5arrow_drop_down
v0.0.5
v0.0.4
v0.0.3
v0.0.2
STATUS
Passing
DOWNLOADS
72
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
3 months ago
SIZE
8 KB
subject
Renders a HTML Button element and a dropdown list into a parent container;
1 contributor
Use dropdown in your project ?
Copied
npm i @bit/lekanmedia.shared-ui.dropdown
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
revert changes
reload
toggle layout
maximize
modifieddraft
chevron_left
chevron_right
SelectButton (
props.className:string,
props.addClass:string,
props.listClass:string,
props.text:string,
props.textStyle:object,
props.icon:string,
props.iconStyle:object,
props.dropdownStyle:object,
props.children:JSX.Element,
props.onClick:function
) : JSX.Element

Renders a HTML Button element and a dropdown list into a parent container;

Arguments
props.className: string

The default class of the button.

props.addClass: string

Add extra class styles to overwrite default class.

props.listClass: string

Add extra class styles to overwrite default class of the dropdown list.

props.text: string

Text for the button.

props.textStyle: object

Style Inline CSS styles for the button text.

props.icon: string

Google Material Icon for the button.

props.iconStyle: object

Style Inline CSS styles for icon.

props.dropdownStyle: object

Style Inline CSS styles for the dropdown list.

props.children: JSX.Element

HTML list elements such as <li></li>, <ol></ol>, <option></option> rendered as dropdown list elements.

props.onClick: function

onclick event function of the button.

Returns
JSX.Element

A `button` and a dropdown list toggled by the `button`.

Dropdown (
props.className:string,
props.addClass:string,
props.listClass:string,
props.text:string,
props.textStyle:object,
props.icon:string,
props.iconStyle:object,
props.dropdownStyle:object,
props.children:JSX.Element,
props.onClick:function
) : JSX.Element

Renders a HTML Button element and a dropdown list into a parent container;

Arguments
props.className: string

The default class of the button.

props.addClass: string

Add extra class styles to overwrite default class.

props.listClass: string

Add extra class styles to overwrite default class of the dropdown list.

props.text: string

Text for the button.

props.textStyle: object

Style Inline CSS styles for the button text.

props.icon: string

Google Material Icon for the button.

props.iconStyle: object

Style Inline CSS styles for icon.

props.dropdownStyle: object

Style Inline CSS styles for the dropdown list.

props.children: JSX.Element

HTML list elements such as <li></li>, <ol></ol>, <option></option> rendered as dropdown list elements.

props.onClick: function

onclick event function of the button.

Returns
JSX.Element

A `SelectButton` and dropdown list with a different CSS styling.