lucid-ui
Version:
A UI component library from AppNexus.
20 lines (19 loc) • 885 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("section", { style: { minHeight: 90 } },
React.createElement(SingleSelect, { isSelectionHighlighted: 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 = `
Use \`isSelectionHighlighted="false"\` when the dropdown defaults to null selections such as All or Any. The grey outline indicates that this selection does not need users' attention.
`;
// end-hide-from-docs