Skip to content

Commit

Permalink
📝 #4 - docs: update sample page story to include toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Jan 12, 2024
1 parent feff89a commit 13df99b
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src/components/page/page.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import type { Meta, StoryObj } from "@storybook/react";
import React from "react";

import { Button, ButtonLink } from "../button";
import { Outline } from "../icon";
import { Container, Grid } from "../layout";
import { Column } from "../layout/column";
import { Logo } from "../logo";
import { Toolbar } from "../toolbar";
import { Page } from "./page";

type PagePropsAndCustomArgs = React.ComponentProps<typeof Page> & {
Expand Down Expand Up @@ -35,13 +38,41 @@ export const SamplePage: Story = {
<Page>
<Container debug={debug}>
<Grid debug={debug}>
<Column debug={debug} span={12}>
<Column debug={debug} span={1}>
<Logo
href="/?path=/story/building-blocks-page--sample-page"
hrefLabel="Navigate to story page"
label="Maykin"
/>
</Column>

<Column debug={debug} span={11}>
<Toolbar align="end">
<Button variant="transparent">
<Outline.PencilIcon />
Zaaktypen
</Button>

<Button variant="transparent">
<Outline.ClipboardDocumentIcon />
Documenttypen
</Button>

<ButtonLink
href="https://www.example.com"
target="_blank"
variant="transparent"
>
<Outline.UserIcon />
Admin
</ButtonLink>

<Button variant="primary">
<Outline.ArrowRightStartOnRectangleIcon />
Uitloggen
</Button>
</Toolbar>
</Column>
</Grid>
</Container>
</Page>
Expand Down

0 comments on commit 13df99b

Please sign in to comment.