Sha256: f14068802aa1cd819bb63caf720174b86bad1363479bfe6699fecb54f21f8ec4

Contents?: true

Size: 935 Bytes

Versions: 671

Compression:

Stored size: 935 Bytes

Contents

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

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

      <br />

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

      <br />

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

export default DateUnstyled

Version data entries

671 entries across 671 versions & 2 rubygems

Version Path
playbook_ui_docs-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.8.0.pre.alpha.play1648heightglobalprops4606 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.8.0.pre.alpha.play1648heightglobalprops4606 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.9.0.pre.rc.4 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.9.0.pre.rc.4 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.9.0.pre.rc.3 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.9.0.pre.rc.3 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.9.0.pre.rc.2 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.9.0.pre.rc.2 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx