From 4c88fff69cafccc72a45e63c90b3a0be095787aa Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Mon, 19 Feb 2024 09:31:01 +1100 Subject: [PATCH] feat(#139): add layout component --- src/components/Layout.stories.js | 36 ++++++++++++++++++ src/components/Layout.vue | 65 ++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 src/components/Layout.stories.js create mode 100644 src/components/Layout.vue diff --git a/src/components/Layout.stories.js b/src/components/Layout.stories.js new file mode 100644 index 0000000..c1442cf --- /dev/null +++ b/src/components/Layout.stories.js @@ -0,0 +1,36 @@ +import CTLabel from './Label.vue' + +export default { + title: 'CivicTheme/Atoms/Forms/Label', + component: CTLabel, + argTypes: { + size: { + options: ['extra-large', 'large', 'regular', 'small', 'extra-small'], + control: 'select' + }, + theme: { + options: ['dark', 'light'], + control: 'select' + } + }, + parameters: { + status: { + type: 'beta', + } + } +} + +const Template = (args, { argTypes }) => { + return { + props: Object.keys(argTypes), + template: ` + +`, + } +} + +export const Default = Template.bind({}) +Default.storyName = 'Label' +Default.args = { + default: '[Default content slot]', +} diff --git a/src/components/Layout.vue b/src/components/Layout.vue new file mode 100644 index 0000000..9ffcf4f --- /dev/null +++ b/src/components/Layout.vue @@ -0,0 +1,65 @@ + + +