From 4581c262ca06704baaa3c0a172d509207f41f5c3 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sat, 21 May 2022 18:42:19 +0200 Subject: chore: complete Storybook stories --- src/components/templates/layout/layout.stories.tsx | 26 ++++++++++++++++++++++ .../templates/page/page-layout.stories.tsx | 24 ++++++++++++++++++++ 2 files changed, 50 insertions(+) (limited to 'src/components/templates') diff --git a/src/components/templates/layout/layout.stories.tsx b/src/components/templates/layout/layout.stories.tsx index 105e808..4666b07 100644 --- a/src/components/templates/layout/layout.stories.tsx +++ b/src/components/templates/layout/layout.stories.tsx @@ -60,6 +60,32 @@ export default { required: false, }, }, + useGrid: { + control: { + type: 'boolean', + }, + description: 'Use the grid layout.', + table: { + category: 'Options', + }, + type: { + name: 'boolean', + required: false, + }, + }, + withExtraPadding: { + control: { + type: 'boolean', + }, + description: 'Set additional padding at the bottom of the page.', + table: { + category: 'Options', + }, + type: { + name: 'boolean', + required: false, + }, + }, }, decorators: [ (Story) => ( diff --git a/src/components/templates/page/page-layout.stories.tsx b/src/components/templates/page/page-layout.stories.tsx index bec1066..12fe26a 100644 --- a/src/components/templates/page/page-layout.stories.tsx +++ b/src/components/templates/page/page-layout.stories.tsx @@ -33,6 +33,30 @@ export default { required: false, }, }, + bodyAttributes: { + description: 'Set additional HTML attributes to the main content body.', + table: { + category: 'Options', + }, + type: { + name: 'object', + required: false, + value: {}, + }, + }, + bodyClassName: { + control: { + type: 'text', + }, + description: 'Set additional classnames to the main content body.', + table: { + category: 'Styles', + }, + type: { + name: 'string', + required: false, + }, + }, breadcrumb: { description: 'The breadcrumb items.', type: { -- cgit v1.2.3