yaml mode

This commit is contained in:
Ari Sosnovsky committed 2021-11-16 22:36:05 -05:00
1 parent eb12ecc5d6
commit fe1b66d2d9
9 files changed
+92 -100

No files matched your search

@@ -0,0 +1,26 @@
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { useState } from "react";
import { usePageTheme } from "~/styles/page";
import InputYaml from "./InputYaml";
export default {
title: 'Inputs/InputYaml',
component: InputYaml,
parameters: { actions: { argTypesRegex: '^on.*' } },
} as ComponentMeta<typeof InputYaml>;
const Template: ComponentStory<typeof InputYaml> = args => {
const {classes} = usePageTheme({});
const [value, setValue] = useState({
"test": "data"
})
return <div className={classes.page}>
<InputYaml {...args} value={value} onChange={setValue}/>
</div>
}
export const SimpleText = Template.bind({})
SimpleText.args = {
label: "Template",
}