Natural Preference for Minification
    Wondering what’s next for npm?Check out our public roadmap! »

    @fenderdigital/react-select-box
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    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.
    propName propType defaultValue isRequired
    bgColor string black-05 -
    borderColor string black-20 -
    dataId string select-box -
    defaultMessage string undefined -
    fontStyles string futura-book near-black f6 -
    htmlName string name -
    onChange func undefined -
    options array yes
    styles string pv2 -
    value string undefined -

    Development

    Check the Monorepo README for development documentation.

    Install

    npm i @fenderdigital/react-select-box

    DownloadsWeekly Downloads

    12

    Version

    1.0.2

    License

    UNLICENSED

    Unpacked Size

    56.3 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar