Sha256: 0420f3f5e49626b086d5e2486445ebb71086e3ba7b7d243891898db10b1a5f53

Contents?: true

Size: 1.18 KB

Versions: 74

Compression:

Stored size: 1.18 KB

Contents

import React from 'react'
import { DatePicker } from '../../'

const DatePickerDisabled = () => (
  <div>
    <DatePicker
        disableDate={[new Date().fp_incr(1)]}
        label="Disable Single Date"
        pickerId="single-disabled-date"
    />
    <DatePicker
        disableDate={[new Date().fp_incr(1), new Date().fp_incr(3)]}
        label="Disable Multiple Dates"
        pickerId="multiple-disabled-dates"
    />
    <DatePicker
        disableRange={[
          {
            from: new Date().fp_incr(1),
            to: new Date().fp_incr(7),
          },
        ]}
        label="Disable Single Range"
        pickerId="single-date-range"
    />
    <DatePicker
        disableRange={[
          {
            from: new Date().fp_incr(1),
            to: new Date().fp_incr(3),
          },
          {
            from: new Date().fp_incr(7),
            to: new Date().fp_incr(14),
          },
        ]}
        label="Disable Multiple Ranges"
        pickerId="multiple-date-ranges"
    />
    <DatePicker
        disableWeekdays={['Sunday', 'Saturday']}
        label="Disable Specific Weekdays"
        pickerId="disabled-weekdays"
    />
  </div>
)

export default DatePickerDisabled

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
playbook_ui-6.8.1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-6.8.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-6.7.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-6.6.1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-6.6.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-6.5.2 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.1.pre.alpha10 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.1.pre.alpha9 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-6.5.1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-6.5.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx