Skip to content

Commit

Permalink
dev stories
Browse files Browse the repository at this point in the history
  • Loading branch information
hussam-i-am committed Oct 29, 2024
1 parent 396f652 commit 98b3d88
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions packages/react/src/Header/Header.dev.stories.tsx
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>
)

0 comments on commit 98b3d88

Please sign in to comment.