Hero
Gadget hero: a CSS lamp whose light is driven by sliders
First screen of a product landing: a lamp render (transparent PNG) with CSS light layers over the diffuser; without it the lamp is drawn in CSS — body gradients, a glowing diffuser, a halo and a cast on the desk. Two sliders, “temperature 2700–6500 K” and “brightness”, change the light for real through color-mix and variables, and the headline fades in with the light. Lines slide in through masks, the dial on the body turns with the temperature.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
What you can change
- image, imageAlt — the front lamp render
- eyebrow, title, lede, facts
- primaryLabel, primaryHref, secondaryLabel, secondaryHref
Built from
The install command brings these components too. The block only passes them props: their palette and behaviour stay their own.
A link for your AI agent: preview, code and instructions.
Preview

Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/hero-043?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
How to use
<Hero043
image="/photos/lamp-front.png"
title="Wake up to light, not to noise"
primaryLabel="Preorder — $149"
facts={["1,200 lm", "CRI 97"]}
defaultKelvin={2700}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Title
title· default: Wake up to light, not to noise- Temperature, K
defaultKelvin· default: 2700- Brightness, %
defaultBrightness· default: 90- Theme
tone· default: auto- Accent
accent· default: theme colour- Ink
ink· default: theme colour- Background
background· default: theme colour
Used in scenarios
- Gadget & hardwareFirst screen
More in Hero
- Fundraising hero: an amount counter, a milestone progress bar and a magnetic button
- Writer's hero: name rising from a mask, a quote written by a pen, sun/moon
- Video intro hero: loader, a car driving in, a freeze frame and a wordmark behind the roof
- Vet clinic hero with a background clip: a cat leaps into frame and freezes
- Food delivery hero with a background clip: a burger stacks in slow motion, a live timer
- Full-screen house project slider with a glass card and price
FAQ
- How do I add Gadget hero: a CSS lamp whose light is driven by sliders with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Gadget hero: a CSS lamp whose light is driven by sliders depend on?
- No npm packages beyond React and Tailwind CSS. It also installs catalog components: button-016.
- What can I change in Gadget hero: a CSS lamp whose light is driven by sliders?
- Adapt: image, imageAlt — the front lamp render; eyebrow, title, lede, facts; primaryLabel, primaryHref, secondaryLabel, secondaryHref. Keep as installed: the button-016 imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; with image: [data-part=tint] (mix-blend-mode:color, the --light colour) and [data-part=dim] (multiply, opacity from --b) sit over the render's diffuser area; the light colour is color-mix(in oklab, warm, cold k%) from the -k variable; brightness -b drives the halo opacity, diffuser brightness and headline opacity.
- Is Gadget hero: a CSS lamp whose light is driven by sliders free?
- The preview is open to everyone; the source is available with a PRO subscription.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/hero-043.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
A composite block: imports button-016 from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone.
Tags
- hero
- gadget
- hardware
- product
- lamp
- light
- slider
- interactive
- css-art
- kinetic
- preorder
- composite
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…