2.0.3 • Published 6 years ago

@materialr/select v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

MaterialR Select

@materialr/select

Build Status Coverage Status NSP Status semantic-release

React Material select implementation.

Installation

$ npm install --save @materialr/select

Demo

A full demo is available on the MaterialR website showcasing all variants.

Components

Default export

import Select from '@materialr/select';

Props

PropTypeRequiredDefaultDescription
boxboolNofalseWhether to render with a box style
childrennodeYesN/AThe child elements to render inside the select
classNamestringNoundefinedAdditional classNames to add
disabledboolNofalseWhether to render a disabled select
idstringNouuidv1()The id for the select element
namestringNoundefinedThe name attribute of the select element
onBlurfuncNoundefinedThe blur event handler
onChangefuncNoundefinedThe change event handler
onDragStartfuncNoundefinedThe dragstart event handler
onDropfuncNoundefinedThe drop event handler
onFocusfuncNoundefinedThe focus event handler
valuestringNoundefinedThe selected value

Named exports

import { SelectGroup } from '@materialr/select';

Props

PropTypeRequiredDefaultDescription
childrennode/nodeYesN/AThe child elements to render inside the group
labelstringYesN/AThe label to display for the group
import { SelectOption } from '@materialr/select';

Props

PropTypeRequiredDefaultDescription
disabledboolNofalseWhether the option is disabled
labelstringYesN/AThe label to display for the group
valuenumber/stringYesN/AThe value for the option
2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago