Skip to content

Commit

Permalink
feat: add drawer component (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
wp-aberg authored Sep 1, 2022
1 parent c3f66d7 commit 94c6276
Show file tree
Hide file tree
Showing 29 changed files with 7,177 additions and 1,710 deletions.
505 changes: 505 additions & 0 deletions build.washingtonpost.com/docs/components/drawer.mdx

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions build.washingtonpost.com/pages/kitchen-sink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
Divider,
Avatar,
PaginationDots,
Drawer,
} from "@washingtonpost/wpds-ui-kit";
import Chart from "@washingtonpost/wpds-assets/asset/chart";
import Settings from "@washingtonpost/wpds-assets/asset/settings";
Expand Down Expand Up @@ -365,6 +366,15 @@ function HomePage() {
</HStack>
</Stack>
</Stack>
<h2>Drawer</h2>
<Drawer.Root id="drawer-id">
<Drawer.Trigger>Trigger Drawer</Drawer.Trigger>
<Drawer.Content>
<Drawer.Close />
Drawer Content
</Drawer.Content>
<Drawer.Scrim />
</Drawer.Root>
</>
);
}
Expand Down
34 changes: 34 additions & 0 deletions build.washingtonpost.com/public/img/components/drawer/anatomy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions build.washingtonpost.com/public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
<loc>https://build.washingtonpost.com/components/divider</loc>
</url>

<url>
<loc>https://build.washingtonpost.com/components/drawer</loc>
</url>

<url>
<loc>https://build.washingtonpost.com/components/icon</loc>
</url>
Expand Down
Loading

2 comments on commit 94c6276

@vercel
Copy link

@vercel vercel bot commented on 94c6276 Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit – ./build.washingtonpost.com

build.washingtonpost.com
wpds-ui-kit-git-main.preview.now.washingtonpost.com
wpds-ui-kit.preview.now.washingtonpost.com

@vercel
Copy link

@vercel vercel bot commented on 94c6276 Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit-storybook – ./

wpds-ui-kit-storybook.preview.now.washingtonpost.com
wpds-ui-kit-storybook-git-main.preview.now.washingtonpost.com

Please sign in to comment.