Stars Installation

Get started with adding neobrutalism stars to your project.

You can install it in the same way you would install main components. You can copy the shadcn cli command or copy the component directly.

If you choose to install it via shadcn cli command, you'll have to choose desired package manager.

Component Props

NameDescriptionType
colorStar colorstring
sizeWidth and height of star in pixelsnumber
strokePath stroke colorstring
strokeWidthStroke widthnumber
pathClassNamePath classnamestring

If color prop isn't present fallback value will be currentColor.

Rest of the props are extended from <React.SVGProps> (basically all attributes an svg can have, such as className, width, height, aria attributes etc.).

Examples

Default

With stroke

Custom width and height

Dark mode color

Dark mode stroke color