Sha256: f14068802aa1cd819bb63caf720174b86bad1363479bfe6699fecb54f21f8ec4

Contents?: true

Size: 935 Bytes

Versions: 948

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

948 entries across 948 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx