UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

44 lines (43 loc) 1.3 kB
/* eslint-disable no-console, react/prop-types */ import React from 'react'; import createReactClass from 'create-react-class'; import IconSettings from "../../../../components/icon-settings"; // Higher Order Components such as `react-onclickoutside` use the DOM and Jest snapshot testing must be DOMless import MenuPicklist from "../../../../components/menu-picklist"; var Example = createReactClass({ displayName: 'MenuPicklistExample', render: function render() { return React.createElement(IconSettings, { iconPath: "/assets/icons" }, React.createElement(MenuPicklist, { id: "sample-menu-picklist", isInline: true, label: "Contacts", onSelect: function onSelect(value) { console.log('selected: ', value); }, options: [{ label: 'Option A', value: 'A0' }, { label: 'Option B', value: 'B0' }, { label: 'Option C', value: 'C0' }, { label: 'Option D', value: 'D0' }, { label: 'Option E', value: 'E0' }, { label: 'Option FGHIJKLMNOPQRSTUVWXYZ', value: 'F0' }], placeholder: "Select a contact", value: "C0" })); } }); export default Example; //# sourceMappingURL=snapshot-default.js.map