-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
396f652
commit 98b3d88
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react' | ||
import type {Meta, StoryFn} from '@storybook/react' | ||
import {MarkGithubIcon} from '@primer/octicons-react' | ||
|
||
import Header from './Header' | ||
import Avatar from '../Avatar' | ||
import Octicon from '../Octicon' | ||
|
||
export default { | ||
title: 'Components/Header/Dev', | ||
component: Header, | ||
} as Meta<typeof Header> | ||
|
||
export const Default = () => ( | ||
<Header> | ||
<Header.Item> | ||
<Header.Link href="#" sx={{fontSize: 2}}> | ||
<Octicon icon={MarkGithubIcon} size={32} sx={{mr: 2}} /> | ||
<span>GitHub</span> | ||
</Header.Link> | ||
</Header.Item> | ||
<Header.Item full>Menu</Header.Item> | ||
<Header.Item sx={{mr: 0}}> | ||
<Avatar src="https://github.com/octocat.png" size={20} square alt="@octocat" /> | ||
</Header.Item> | ||
</Header> | ||
) | ||
|
||
export const Playground: StoryFn<typeof Header> = args => ( | ||
<Header {...args}> | ||
<Header.Item> | ||
<Header.Link href="#" sx={{fontSize: 2}}> | ||
<Octicon icon={MarkGithubIcon} size={32} sx={{mr: 2}} /> | ||
<span>GitHub</span> | ||
</Header.Link> | ||
</Header.Item> | ||
<Header.Item full>Menu</Header.Item> | ||
<Header.Item sx={{mr: 0}}> | ||
<Avatar src="https://github.com/octocat.png" size={20} square alt="@octocat" /> | ||
</Header.Item> | ||
</Header> | ||
) |