Sha256: defb16cbdb06bf0733cad4d0bce87cab29960b2ae406c43e4a4e54d406772ce9

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

import React from "react"
import DatePicker from "./DatePicker"

import { text, boolean } from "@storybook/addon-knobs"

export default function DatePickerStory(stories) {
  stories.add("DatePicker",
    () => {
      const props = {
        labelText: text("Label", "Date"),
        disabled: boolean("Disabled", false),
        floatAbove: boolean("Float Above", false),
        timeFormat: text("Time Format", undefined),
        errorMessage: text("Error Message", undefined),
        onChange: () => {},
      }
      return (
        <DatePicker {...props}/>
      )
    }
  )
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-2.7.2 components/DatePicker/DatePickerStory.jsx
playbook_ui-2.7.1 components/DatePicker/DatePickerStory.jsx
playbook_ui-2.7.0 components/DatePicker/DatePickerStory.jsx
playbook_ui-2.6.0 components/DatePicker/DatePickerStory.jsx
playbook_ui-2.5.0 components/DatePicker/DatePickerStory.jsx