From 42951359e25ff9e3517fb8598908e0b78e1f4d94 Mon Sep 17 00:00:00 2001 From: Haider Alshamma Date: Tue, 31 Oct 2023 17:42:02 -0400 Subject: [PATCH] feat: add helpText to the Sidebar - Add a helpText and a renderHelpText props to the Sidebar component. --- src/Layout/Sidebar.story.tsx | 63 ++++++++++++++++++++++++++++++++++++ src/Layout/Sidebar.tsx | 55 ++++++++++++++++++++----------- 2 files changed, 99 insertions(+), 19 deletions(-) diff --git a/src/Layout/Sidebar.story.tsx b/src/Layout/Sidebar.story.tsx index a2fb6d5d6..fa8e88faf 100644 --- a/src/Layout/Sidebar.story.tsx +++ b/src/Layout/Sidebar.story.tsx @@ -11,6 +11,11 @@ import { Select, PrimaryButton, Box, + Textarea, + Text, + Flex, + Button, + Heading3, } from ".."; const primaryMenu = [ @@ -439,3 +444,61 @@ export const WithDifferentWidths = () => { ); }; + +export const WithHelpText = () => { + const [helpText, setHelpText] = useState( + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus tempor lacus nec finibus egestas." + ); + + return ( + +