lucid-ui
Version:
A UI component library from AppNexus.
19 lines (18 loc) • 744 B
JavaScript
import React from 'react';
import createClass from 'create-react-class';
import { SingleSelect } from '../../../index';
const { Placeholder, Option } = SingleSelect;
export default createClass({
render() {
return (React.createElement(SingleSelect, { hasReset: false },
React.createElement(Placeholder, null, "Select Foo"),
React.createElement(Option, null, "Red"),
React.createElement(Option, null, "Green"),
React.createElement(Option, null, "Blue")));
},
});
// begin-hide-from-docs
export const notes = `
This removes the default state, Select one, after a selection has been made. Use \`hasReset="false"\` to prevent users from deselecting a setting.
`;
// end-hide-from-docs