Skip to main content

Description

The Background component is configurable via props and can be passed to the Svelvet component as a child.
App.svelte
When passing the Background component to Svelvet, you must specify slot=“background”

Props

number
default:"22"
Pixel value representing space between dots at default scale.
number
default:"1.4"
Pixel value representing the size of each grid point at default scale.
CSS Color String
default:"theme dependent"
Primary background color.
CSS Color String
default:"theme dependent"
Primary dot color.