-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds the Page Card component #2286
base: proj-docs-v3
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
const PageCard = ({ | ||
showCta = true, | ||
showTag = false, |
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.
This can be renamed to tag and it can be used in place of "Tag Text". If this is not present, we don't need to render the tag
const PageCard = ({ | ||
showCta = true, | ||
showTag = false, | ||
showImage = false, |
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.
Let's accept the image URL here and render that instead of the hardcoded link used. If this is not provided, we don't render the img element - same as above
import { ArrowRightIcon } from '@100mslive/react-icons'; | ||
|
||
const PageCard = ({ | ||
showCta = true, |
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.
Here, the prop can be "CTA" with "Read more" as the default. If it is not needed, it can be specified as "" by the author
Usage:
With Image