initial work with mui

This commit is contained in:
ari committed 2022-05-24 21:12:01 -04:00
1 parent f8233dd6ab
commit 44c4ac12dd
35 files changed
+216 -145

No files matched your search

@@ -1,4 +1,5 @@
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { Page } from "components/Page";
import { useState } from "react";
import InputTextBubble, { InputEntity } from "./InputTextBubble";
@@ -18,26 +19,26 @@ export default {
export const ArrayText: ComponentStory<typeof InputTextBubble> = args => {
const [value, setValue] = useState<string | string[]>(['wow', 'lots of bubbles', 'itchen', 'bathroom'])
return <div className="page">
return <Page>
<div style={{ maxWidth: '200px', overflow: 'hidden' }}>
<InputTextBubble {...args} value={value} onChange={setValue} />
</div>
</div>
</Page>
}
export const JustText: ComponentStory<typeof InputTextBubble> = args => {
const [value, setValue] = useState<string | string[]>('hello')
return <div className="page">
return <Page>
<InputTextBubble {...args} value={value} onChange={setValue} />
</div>
</Page>
}
export const EntityId: ComponentStory<typeof InputTextBubble> = args => {
const [value, setValue] = useState<string | string[]>(['sensor.bathroom'])
return <div className="page">
return <Page>
<InputEntity value={value} onChange={setValue} />
</div>
</Page>
}