-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Project card and Banner Image (#6)
* Banner Image * iterating * adding docs * fixing test * removing states variant
- Loading branch information
Showing
14 changed files
with
634 additions
and
4 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,25 @@ | ||
import { Meta, Title, Primary, Stories, Controls, Story } from "@storybook/blocks"; | ||
import * as ProjectCardStories from "./ProjectCard.stories"; | ||
import { ProjectCard } from "./ProjectCard"; | ||
|
||
# ProjectCard | ||
|
||
<Meta of={ProjectCardStories} /> | ||
|
||
The ProjectCard component renders a Gitcoin Project in a card Format. These can be used to share on social media or to render in a list. | ||
|
||
This component provides a Loading and an Error State. | ||
|
||
This component natively supports a Tanstack Query for a single Project, and will appropriately display Loading, Error, and Success states. | ||
|
||
# Example | ||
|
||
<Story of={ProjectCardStories.Default} /> | ||
|
||
# Controls | ||
|
||
<Controls /> | ||
|
||
# Other variations | ||
|
||
<Stories /> |
Oops, something went wrong.