Sha256: 44ab6a8777b680576675b0da5f2e196b1e18774e2e7270f3e3ef8a6d71fa55fb
Contents?: true
Size: 664 Bytes
Versions: 948
Compression:
Stored size: 664 Bytes
Contents
import React from 'react' import { Body, Select } from 'playbook-ui' const SelectError = (props) => { const options = [ { value: '1', text: 'Burgers', }, { value: '2', text: 'Pizza', }, { value: '3', text: 'Tacos', }, ] return ( <div> <Select error="Please make a valid selection" label="Favorite Food" name="food" options={options} value="2" {...props} /> <Body error="Please make a valid selection" status="negative" {...props} /> </div> ) } export default SelectError
Version data entries
948 entries across 948 versions & 2 rubygems