81 Pro components and page blocks

Get Pro

Soft Clouds

New

Preview

Customize

Color
Scale1.00
Cover0.50
Softness1.00
Wind15°
Speed1.0
Grain0.120

Installation

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

Usage

import { SoftClouds } from "@/components/uibrik/soft-clouds/soft-clouds";​<SoftClouds  color="#4f93d4"  scale={1}  cover={0.5}  softness={1}  wind={15}  speed={1}  grain={0.12}  animate>  …</SoftClouds>

Props

SoftClouds
color
Type string
"#4f93d4"
Colour of the sky; the clouds are drawn in lighter shades of it.
colors
Type string[]
["#3d5fa8","#7a8fd0","#e0a6b8","#f6d3c4","#fff6ee"]
Hex colours, 2 to 6, from the deepest sky to the brightest cloud. Overrides color.
scale
Type number
1
Size of the clouds; larger is broader and calmer.
cover
Type number
0.5
How much of the sky is cloud.
softness
Type number
1
How soft the clouds' edges are.
wind
Type number
15
Direction the clouds drift; 0 is to the right.
speed
Type number
1
Animation speed; 1 is the designed pace.
grain
Type number
0.12
Film grain strength.
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.