Sha256: dd74853ccb011964e92143f7eb06c7a2b2d2b423e92f04947a6fa36a6d297fb5

Contents?: true

Size: 631 Bytes

Versions: 102

Compression:

Stored size: 631 Bytes

Contents

import React from 'react'
import DateTime from '../_date_time.jsx'

const DateTimeDefault = (props) => (
  <div>
    <DateTime
        datetime={new Date('2020-12-31 14:24:09')}
        showDayOfWeek
        showIcon
        {...props}
    />

    <br />

    <DateTime
        datetime={new Date()}
        showDayOfWeek
        {...props}
    />

    <br />

    <DateTime
        datetime={new Date()}
        showIcon
        {...props}
    />

    <br />

    <DateTime
        datetime={new Date('2020/12/31 14:24:09 -0500')}
        timeZone="Asia/Tokyo"
        {...props}
    />
  </div>
)

export default DateTimeDefault

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_date_time/docs/_date_time_default.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_date_time/docs/_date_time_default.jsx