Atelier UI

Search components…

Search components…

Grid Pattern

SVG grid background with a radial mask and optional highlighted squares.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

GridPatternProps

Also accepts all props of React.ComponentProps<"svg">

PropTypeDefaultDescription
sizenumber40Cell size in px
squares[number, number][][]Cells to fill, as [column, row] pairs
maskedbooleantrueFade the grid out towards the edges

Install

$ npx shadcn@latest add https://chromotion.dev/r/grid-pattern.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this