Sha256: 121986679a10499fd8b723e057257a292ec465a8041612207bb85c49a7724217
Contents?: true
Size: 1.13 KB
Versions: 7
Compression:
Stored size: 1.13 KB
Contents
import React from 'react' import { Date as FormattedDate } from '../../' const DateDefault = (props) => { return ( <> <FormattedDate size="sm" value={new Date()} {...props} /> <br /> <FormattedDate size="sm" value={new Date('03 Aug 2012')} {...props} /> <br /> <FormattedDate showDayOfWeek size="sm" value={new Date('03 Dec 2017')} {...props} /> <br /> <br /> <FormattedDate value={new Date()} {...props} /> <br /> <FormattedDate value={new Date('03 Aug 2012')} {...props} /> <br /> <FormattedDate showDayOfWeek value={new Date('03 Dec 2017')} {...props} /> </> ) } export default DateDefault // *Development Note* - We are reviewing this kit for a potential name change due to naming collisions when `new Date()` is used. // To avoid this bug, please use name spacing as shown in the code examples. ie `import { Date as AliasedComponentName } from '../../'
Version data entries
7 entries across 7 versions & 2 rubygems