mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-07 10:31:46 +00:00
18 lines
329 B
TypeScript
18 lines
329 B
TypeScript
import { twMerge } from "tailwind-merge"
|
|
|
|
export const Pill = ({
|
|
className,
|
|
children,
|
|
}:{
|
|
className?: string,
|
|
children : React.ReactNode
|
|
})=>{
|
|
return (
|
|
<div className={twMerge(
|
|
"rounded-md text-xs font-bold bg-brand-primary py-0.5 px-1.5 w-fit",
|
|
className
|
|
)}>
|
|
{children}
|
|
</div>
|
|
)
|
|
} |