Project docsneobrutal-ui

Stars

Install and customize the decorative star components in the registry.

On this page7 sectionsBack to top

The star collection contains standalone SVG components. Browse every shape on the Stars page, then install only the item you need.

npx shadcn@latest add @neobrutal-ui/s1

Each star is copied into components/stars and accepts standard SVG attributes.

#Component Props

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

If color is omitted, the component uses currentColor.

The remaining props extend React.SVGProps, including className, dimensions, and ARIA attributes.

#Examples

#Default

Loading preview...

#With stroke

Loading preview...

#Custom width and height

Loading preview...

#Dark mode color

Loading preview...

#Dark mode stroke color

Loading preview...