UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

25 lines (21 loc) 711 B
import React from 'react'; import createReactClass from 'create-react-class'; import IconSettings from '~/components/icon-settings'; import Timepicker from '~/components/time-picker'; // `~` is replaced with design-system-react at runtime const Example = createReactClass({ displayName: 'TimepickerExample', render() { return ( <IconSettings iconPath="/assets/icons"> <Timepicker placeholder="Select a time" stepInMinutes={30} onDateChange={(date, inputStr) => { console.log('onDateChange ', date, ' inputStr: ', inputStr); }} /> </IconSettings> ); }, }); export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime