import { ComponentMeta, ComponentStory } from "@storybook/react"; import { Page } from "components/Page"; import { useState } from "react"; import InputTextBubble from "./InputTextBubble"; export default { title: 'Inputs/InputTextBubble', component: InputTextBubble, parameters: { actions: { argTypesRegex: '^on.*' } }, argTypes: { label: { defaultValue: 'Sample Title' } } } as ComponentMeta; export const ArrayText: ComponentStory = args => { const [value, setValue] = useState(['wow', 'lots of bubbles', 'itchen', 'bathroom']) return
} export const JustText: ComponentStory = args => { const [value, setValue] = useState('hello') return } export const ManyOptions: ComponentStory = args => { const [value, setValue] = useState('hello') return } ManyOptions.args = { ...ManyOptions.args, options: [ 'sensor.humidity_bathroom', 'sensor.humidity_bedroom', 'sensor.humidity_laundry', 'sensor.temp_bathroom', 'sensor.temp_bedroom', 'switch.living_room', 'switch.bathroom', 'light.bedroom_main', 'light.bedroom_second', ] }