-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add dev only story and VRT test and fix unit tests
- Loading branch information
1 parent
22a1613
commit 92799a8
Showing
5 changed files
with
106 additions
and
57 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
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
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,43 @@ | ||
import React from 'react' | ||
import {Meta} from '@storybook/react' | ||
import {Button, IconButton, Box} from '..' | ||
import Label from '../Label' | ||
import {GitBranchIcon, PencilIcon, SidebarExpandIcon} from '@primer/octicons-react' | ||
|
||
import {PageHeader} from './PageHeader' | ||
|
||
export default { | ||
title: 'Drafts/Components/PageHeader/DevOnly', | ||
parameters: { | ||
layout: 'fullscreen', | ||
controls: {expanded: true}, | ||
}, | ||
} as Meta | ||
|
||
export const LargeVariantWithMultilineTitle = () => ( | ||
<Box sx={{padding: 3}}> | ||
<PageHeader> | ||
<PageHeader.LeadingAction> | ||
<IconButton aria-label="Edit" icon={PencilIcon} variant="invisible" /> | ||
</PageHeader.LeadingAction> | ||
<PageHeader.TitleArea variant="large"> | ||
<PageHeader.LeadingVisual> | ||
<GitBranchIcon /> | ||
</PageHeader.LeadingVisual> | ||
<PageHeader.Title> | ||
Title long title some extra loooong looong words here some extra loooong looong words here some extra loooong | ||
looong words here some extra loooong looong words here some extra loooong looong words here | ||
</PageHeader.Title> | ||
<PageHeader.TrailingVisual> | ||
<Label>Beta</Label> | ||
</PageHeader.TrailingVisual> | ||
</PageHeader.TitleArea> | ||
<PageHeader.TrailingAction> | ||
<IconButton aria-label="Expand sidebar" icon={SidebarExpandIcon} variant="invisible" /> | ||
</PageHeader.TrailingAction> | ||
<PageHeader.Actions> | ||
<Button variant="primary">Add Item</Button> | ||
</PageHeader.Actions> | ||
</PageHeader> | ||
</Box> | ||
) |
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
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