1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-23 20:14:21 +00:00
bluelib/src/components/inputs/Area.stories.jsx

26 lines
599 B
React
Raw Normal View History

2021-08-19 17:54:58 +00:00
import * as React from "react"
import * as ReactDOM from "react-dom"
import * as Decorators from "../../utils/Decorators"
import { Area as AreaComponent } from "./Area"
2021-08-19 17:54:58 +00:00
export default {
component: AreaComponent,
2021-08-19 17:54:58 +00:00
title: "Inputs/Area",
decorators: [Decorators.Bluelib],
argTypes: {
onChange: {action: "Change"},
onSimpleChange: {action: "SimpleChange"},
2021-08-19 17:54:58 +00:00
},
}
export const Area = props => (
<AreaComponent {...props}/>
2021-08-19 17:54:58 +00:00
)
Area.args = {
2021-08-19 17:54:58 +00:00
placeholder: "Enter multiline text here\n\nThis component can be resized",
disabled: false,
required: false,
}