From 2f3afc34f9bfedd4870f17556b9b518a9da01424 Mon Sep 17 00:00:00 2001 From: Nicholas Barnett Date: Tue, 22 Oct 2024 18:45:50 -0500 Subject: [PATCH] feat: sdkfsuhdfwq --- src/stories/Elevation.stories.tsx | 78 +++++++++++++++++++++++++++---- 1 file changed, 69 insertions(+), 9 deletions(-) diff --git a/src/stories/Elevation.stories.tsx b/src/stories/Elevation.stories.tsx index 5a81ec386..acff37ae8 100644 --- a/src/stories/Elevation.stories.tsx +++ b/src/stories/Elevation.stories.tsx @@ -28,12 +28,9 @@ const ElevationDemo = () => { alignItems="center" justifyContent="center" > - {elevationName} + {elevationName} - - {elevationName}:{' '} - {(elevationValue as any)[colorMode === 'light' ? 'default' : '_dark']} - + {(elevationValue as any)[colorMode === 'light' ? 'default' : '_dark']} ))} @@ -50,11 +47,9 @@ const ElevationDemo = () => { alignItems="center" justifyContent="center" > - {elevationName} + {elevationName} - - {elevationName}: {(elevationValue as any)._dark} - + {(elevationValue as any)._dark} ))} @@ -67,6 +62,71 @@ const meta = { component: ElevationDemo, parameters: { layout: 'padded', + docs: { + source: { + code: ` + //Showing ElevationDemo for light mode. For dark mode, use _dark instead of default. + const ElevationDemo = () => ( + + Elevation Showcase + + + elevation1 + + elevation1 + + 0 2px 6px rgba(183, 180, 176, 0.2) + + + + + + elevation2 + + elevation2 + + 0 2px 6px rgba(183, 180, 176, 0.2) + + + + + + elevation3 + + elevation3 + + 0 2px 6px rgba(183, 180, 176, 0.2) + + + + +); + `, + language: 'tsx', + type: 'auto', + }, + }, }, tags: ['autodocs'], } satisfies Meta;