UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

25 lines (20 loc) 656 B
import React from 'react'; import IconSettings from '~/components/icon-settings'; import Timepicker from '~/components/time-picker'; // `~` is replaced with design-system-react at runtime class Example extends React.Component { static displayName = 'TimepickerExample'; render() { return ( <IconSettings iconPath="/assets/icons"> <Timepicker label="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