clickworks
Works / Content

Acrylic Nameplate

Your name engraved in a clear acrylic plate standing in a pearl or graphite base. An LED strip lights the plate from its bottom edge, so the engraving glows and the top edge burns brightest. The rocker switch turns the light off and on, and small backlit keys on the base hold your links. The email key copies your address.

Free6 files0 dependencies36.3 kB gzippedRenders on the serverKeyboard and screen reader

Install

npx shadcn@latest add https://clickworks.dev/r/acrylic-nameplate.json

The files land in components/clickworks/acrylic-nameplate/. No other packages are added.

Usage

import { AcrylicNameplate } from "@/components/clickworks/acrylic-nameplate/react/AcrylicNameplate"

export function About() {
  return (
    <AcrylicNameplate
      name="nadia"
      jobTitle="product designer"
      photo="/portrait.jpg"
      links={{ email: "hello@example.com", linkedin: "https://www.linkedin.com/in/you" }}
    />
  )
}

Props

name
string

Engraved in the acrylic. A long name shrinks to fit.

jobTitle
string

Small line under the name, up to two lines.

photo
string

Image URL, shown as a black and white print above the name.

photoAlt
string

Alt text for the photo.

Default the name

mark
string

Etched into the front of the base, on the left.

links
{ email?, x?, linkedin?, instagram?, framer? }

Each link you set becomes a backlit key on the base. The email key copies the address.

light
string

Colour of the light in the acrylic, the LED and the keys.

Default "#FF5A28"

base
string

Colour of the base. Every highlight and shade is mixed from it.

Default "#F3F2EF"

theme
"light" | "dark" | "auto"

A pearl finish in light; a graphite base with clear smoked acrylic in dark. Auto follows the page, then the device.

startOn
boolean

Whether the light is on when the page loads.

Default true

tilt
boolean

Turns the plate a little toward the mouse.

Default false

sound
boolean

A soft click when the switch flips.

Default true

haptics
boolean

A short buzz on phones that support it.

Default true

pixelFace
boolean

The built-in Geist Pixel for the name and mark. Off uses your own fonts.

Default true

Events

onTurnOn
() => void

The switch turned the light on.

onTurnOff
() => void

The switch turned the light off.

onCopy
(detail: { address }) => void

The email key copied the address.

Styling

Set these custom properties on the component or any parent. Every shade and shadow is mixed from them, so any palette still looks lit.

--an-light#FF5A28
--an-base#F3F2EF
--an-name-size78 (at a 520px plate)
--an-name-fontGeist Pixel
--an-role-fontGeist
--an-mark-fontGeist Pixel

Behaviour and accessibility

  • Every size comes from a 520px design in container units, so the plate keeps its proportions at any width.
  • The switch is a real button with role switch: Space and Enter flip it. The light eases over 640 ms.
  • Link keys are real links that say where they go. The email key is a button labelled Copy.
  • Tilt follows a mouse only. With reduced motion the light switches without easing and never tilts.

Files

react/AcrylicNameplate.tsxReact component
element/index.tsCustom element
element/acrylic-nameplate-element.tsCustom element
core/engine.tsEngine
core/styles.tsEngine
core/pixel-font.tsEngine