-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(Heading): create heading component #6
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Looks good. Just some small changes please.
apps/web/src/app/[lang]/page.tsx
Outdated
/> | ||
</Link> | ||
<div className="px-6 py-4"> | ||
<Heading className="mb-4" size={9} color="#fff" weight="medium" align="center">All your spaces, in one place</Heading> |
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.
There are some type errors for color
and weight
. See my comment on the component also
{ | ||
variants: { | ||
size: { | ||
1: 'text-[14px] leading-tight', // h9 |
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.
We should probably define those at the tailwind.config.js
to keep all configuration in one location
export interface HeadingProps | ||
extends React.HTMLAttributes<HTMLHeadingElement>, | ||
VariantProps<typeof headingVariants> { | ||
asChild?: boolean; |
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.
I was able to fix the color
type error by overwriting it here:
asChild?: boolean; | |
asChild?: boolean; | |
color?: 'primary' | 'secondary'; |
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.
lgtm
✅ Checklist