-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add with button story for contextual component (#88)
The button is displayed overlaying the contextual element
- Loading branch information
Showing
3 changed files
with
71 additions
and
27 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 |
---|---|---|
@@ -1,15 +1,30 @@ | ||
import * as React from "react"; | ||
import Box from "@material-ui/core/Box"; | ||
import { Contextual } from "./Contextual"; | ||
|
||
export default { | ||
title: "Contextual", | ||
}; | ||
|
||
export const Default: React.FC = () => ( | ||
<Contextual | ||
name="category" | ||
title="Hardware" | ||
body="Lorem ipsum dolor sit amet..." | ||
image="./hardware.png" | ||
/> | ||
<Box width="344px"> | ||
<Contextual | ||
name="category" | ||
title="Hardware" | ||
body="Lorem ipsum dolor sit amet..." | ||
image="./hardware.png" | ||
/> | ||
</Box> | ||
); | ||
|
||
export const WithButton: React.FC = () => ( | ||
<Box width="344px"> | ||
<Contextual | ||
name="category" | ||
title="Hardware" | ||
body="Lorem ipsum dolor sit amet..." | ||
image="./hardware.png" | ||
button | ||
/> | ||
</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
8d79c3b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: