Sha256: ef51d2b5da4eaa55ac6bb91d41a5cca1609673f8326be7c1c6ea3f332612b657

Contents?: true

Size: 1.03 KB

Versions: 44

Compression:

Stored size: 1.03 KB

Contents

import React from 'react'
import { Caption, Date as FormattedDate, Title } from 'playbook-ui'

const DateUnstyled = (props) => {
  return (
    <>
      <Caption {...props}
          size="xs"
          text="Basic unstyled example"
      />
      <FormattedDate
          unstyled
          value={new Date()}
          {...props}
      />

      <br />

      <Caption {...props}

          size="xs"
          text="Example with wrapping typography kit"
      />
      <Title {...props}
          size={1}
      >
        <FormattedDate
            unstyled
            value={new Date('25 Dec 1995')}
            {...props}
        />
      </Title>

      <br />

      <Caption {...props}
          size="xs"
          text="Example with icon + subcaption"
      />
      <Caption {...props}
          size="xs"
      >
        <FormattedDate
            showDayOfWeek
            showIcon
            unstyled
            value={new Date('25 Dec 1995')}
            {...props}
        />
      </Caption>
    </>
  )
}

export default DateUnstyled

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
playbook_ui_docs-14.12.0.pre.alpha.PLAY1888initializeOncereactdatepickerslowdown5956 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.alpha.PLAY1888initializeOncereactdatepickerslowdown5956 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.13.0.pre.rc.10 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.13.0.pre.rc.10 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.13.0.pre.rc.9 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.13.0.pre.rc.9 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.alpha.playrailsinputmaskissue5933 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.alpha.playrailsinputmaskissue5933 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.alpha.PBNTR834advtablemaxHeightstickyheader5932 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.alpha.PBNTR834advtablemaxHeightstickyheader5932 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.13.0.pre.rc.8 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.13.0.pre.rc.8 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.alpha.play1887homeaddressfix5910 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.alpha.play1887homeaddressfix5910 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.alpha.PBNTR8335906 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.alpha.PBNTR8335906 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.alpha.play1849cssbargraph5901 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.alpha.play1849cssbargraph5901 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.13.0.pre.rc.7 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.13.0.pre.rc.7 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx