Skip to content

Latest commit

 

History

History
 
 

bpk-component-select

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

bpk-component-select

Backpack select component.

Installation

npm install bpk-component-select --save-dev

Usage

import React from 'react';
import BpkSelect from 'bpk-component-select';

export default () => (
  <BpkSelect
    id="fruits"
    name="fruits"
    value="oranges"
    onChange={() => console.log('select changed')}
  >
    <option value="apples">Apples</option>
    <option value="oranges">Oranges</option>
    <option value="pears">Pears</option>
  </BpkSelect>
);

Props

Property PropType Required Default Value
id string true -
name string true -
value string true -
onChange func true -
valid bool false null
large bool false false
dockedFirst bool false false
dockedMiddle bool false false
dockedLast bool false false