lucid-ui
Version:
A UI component library from AppNexus.
19 lines (18 loc) • 685 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, { isDisabled: true },
React.createElement(Placeholder, null, "Select Color"),
React.createElement(Option, null, "Red"),
React.createElement(Option, null, "Green"),
React.createElement(Option, null, "Blue")));
},
});
// begin-hide-from-docs
export const notes = `
Apply \`isDisabled\` to the dropdown if none of the options are currently available.
`;
// end-hide-from-docs