From 8c80c0e2be01b4868aa55727b6cfcfca0ef438ba Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Wed, 31 Jan 2024 02:31:22 +0900 Subject: [PATCH] CheckboxControl: Add custom label example to Storybook (#58438) --- .../checkbox-control/stories/index.story.tsx | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/packages/components/src/checkbox-control/stories/index.story.tsx b/packages/components/src/checkbox-control/stories/index.story.tsx index ce55cfb655a17..6752ce07667cb 100644 --- a/packages/components/src/checkbox-control/stories/index.story.tsx +++ b/packages/components/src/checkbox-control/stories/index.story.tsx @@ -13,6 +13,7 @@ import { useState } from '@wordpress/element'; */ import CheckboxControl from '..'; import { VStack } from '../../v-stack'; +import { HStack } from '../../h-stack'; const meta: Meta< typeof CheckboxControl > = { component: CheckboxControl, @@ -115,3 +116,46 @@ Indeterminate.args = { label: 'Select all', __nextHasNoMarginBottom: true, }; + +/** + * For more complex designs, a custom `