46 Pro components and page blocks

Get Pro

Silk Cloth

Preview

Customize

Colors
Angle-25°
Folds0.80
Depth1.00
Flow1.00
Creases0.60
Sheen1.00
Gloss0.40
Speed1.0
Grain0.075
Seed0

Usage

import { SilkCloth } from "@/components/uibrik/silk-cloth/silk-cloth";

<SilkCloth />

Installation

npx shadcn@latest add https://uibrik.com/r/silk-cloth.json
Adds the files to components/uibrik/silk-cloth. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/silk-cloth.

Props

SilkCloth
colors
Type string[]
["#0f0308","#3d0a20","#8a1d44","#d4607f","#ffd9e3"]
From the deepest shadow to the brightest sheen, blended in OKLCH; 2 to 6 colours.
angle
Type number
-25
Direction of the folds.
folds
Type number
0.8
How many folds fit across the frame.
depth
Type number
1
How deep the folds are.
flow
Type number
1
How much the folds wander.
creases
Type number
0.6
Soft creases across the folds, where the cloth bunches up.
sheen
Type number
1
Strength of the sheen along the threads.
gloss
Type number
0.4
How tight the sheen is; higher is glossier.
speed
Type number
1
Animation speed; 1 is the designed pace.
grain
Type number
0.075
Film grain strength.
seed
Type number
0
Shifts the composition, so two backgrounds with the same settings still differ.
animate
Type boolean
true
Move on its own. Off draws one still frame.
children
Type ReactNode
–
Content shown on top of the background.
className
Type string
–
Classes for the box; it fills whatever size you give it.