Graphics

Glass Icon

Rounded glass tile that frames a single icon, using the kit's glaze surface and glass-edge utilities with scene foreground ink. Sized for a 36px icon and meant for dark art surfaces.

The source comes with full access.

One payment of $149 ($49 for now) opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/glass-icon
npx shadcn add @01orbital/glass-icon
yarn shadcn add @01orbital/glass-icon
bunx --bun shadcn add @01orbital/glass-icon

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/graphics/glass-icon.tsx, as source you own and edit.

The example also imports @phosphor-icons/react from npm, which the install does not add:

pnpm add @phosphor-icons/react
npm install @phosphor-icons/react
yarn add @phosphor-icons/react
bun add @phosphor-icons/react

Usage

import { MoonStarsIcon, PlanetIcon } from "@phosphor-icons/react/dist/ssr"

import { GlassIcon } from "@/components/graphics/glass-icon"

const ICONS = [
  { name: "Planet", Icon: PlanetIcon },
  { name: "Moon", Icon: MoonStarsIcon },
]

export default function GlassIconDemo() {
  return (
    <ul className="flex gap-8">
      {ICONS.map(({ name, Icon }) => (
        <li key={name}>
          <GlassIcon>
            <Icon weight="fill" aria-hidden="true" />
          </GlassIcon>
        </li>
      ))}
    </ul>
  )
}

API reference

It accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs them for you.

No other registry pieces.