feat: update schema, add ProjectCard, readme

This commit is contained in:
enscribe 2024-09-13 15:18:47 -07:00
parent fbeab5a744
commit b93eddea6b
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
24 changed files with 373 additions and 72 deletions

View file

@ -25,12 +25,14 @@ const badgeVariants = cva(
export interface BadgeProps
extends React.HTMLAttributes<HTMLDivElement>,
VariantProps<typeof badgeVariants> {}
VariantProps<typeof badgeVariants> {
showHash?: boolean
}
function Badge({ className, variant, ...props }: BadgeProps) {
function Badge({ className, variant, showHash = true, ...props }: BadgeProps) {
return (
<div className={cn(badgeVariants({ variant }), className)} {...props}>
<Hash className="size-3 -translate-x-0.5" />
{showHash && <Hash className="size-3 -translate-x-0.5" />}
{props.children}
</div>
)