Use to display the date, stacking month and day. Year will not show if it is the current year.
import React from 'react' import DateStacked from 'playbook-ui' const DateStackedNotCurrentYear = (props) => { return ( <div> <DateStacked date={new Date('20 Mar 2018')} size="sm" /> <br /> <DateStacked date={new Date('20 Mar 2018')} size="md" /> </div> ) } export default DateStackedNotCurrentYear
import React from 'react' import DateStacked from 'playbook-ui' const DateStackedBold = (props) => { return ( <div> <DateStacked align="left" bold date={new Date()} /> <br /> <DateStacked align="center" bold date={new Date('20 Mar 2018')} /> <br /> <DateStacked align="right" bold date={new Date()} /> <br /> </div> ) } export default DateStackedBold