Sha256: f14068802aa1cd819bb63caf720174b86bad1363479bfe6699fecb54f21f8ec4

Contents?: true

Size: 935 Bytes

Versions: 700

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

700 entries across 700 versions & 2 rubygems

Version Path
playbook_ui_docs-13.33.0.pre.alpha.PLAY14143305 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.33.0.pre.alpha.PLAY14143305 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143297 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143297 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143288 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143288 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143272 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143272 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143271 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143271 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143267 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143267 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143264 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143264 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143260 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143260 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143255 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143255 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143251 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143251 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx