1.0.2 • Published 5 years ago

@fenderdigital/react-select-box v1.0.2

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
5 years ago

SelectBox for Fender React UI Kit

Description

A styled select component.

Installation and Usage

yarn add @fenderdigital/react-select-box --save
import SelectBox from '@fenderdigital/react-select-box';

Props

  • bgColor - a configurable tachyon background class.
  • borderColor - a configurable tachyon border class.
  • dataId - data id value. mainly, for automation testing.
  • defaultMessage - default label for the select element.
  • fontStyles - configurable tachyon classes for the text.
  • htmlName - select element name.
  • onChange - onChange callback.
  • options - array of data.
  • styles - configurable tachyon classes for the select element.
  • value - a value used as a default selection.
propNamepropTypedefaultValueisRequired
bgColorstringblack-05-
borderColorstringblack-20-
dataIdstringselect-box-
defaultMessagestringundefined-
fontStylesstringfutura-book near-black f6-
htmlNamestringname-
onChangefuncundefined-
optionsarrayyes
stylesstringpv2-
valuestringundefined-

Development

Check the Monorepo README for development documentation.