Made of something. Compact blackened slabs with worn edges and a recessed green energy channel inside each lower edge.

The moment. Selection wakes the embedded channel with a short unstable surge, then settles. Arrow keys and native radio form behavior remain intact.

Yours to adapt. Copy the component source, styles and materials. Functional text stays live, effects respect reduced motion, and the artwork requires no remote hosting.

Try it

Choose a mode to awaken its recessed energy channel.

Install

Add it with the shadcn CLI, or copy the source manually.

Release candidate: public installation becomes available after deployment. Use an existing React 19 project with shadcn initialized and a components.json file. The CLI installs the source, CSS, embedded materials, MIT licence and font notices together.

Terminal
npx shadcn@latest add https://seanportfol.io/r/grimkit-obelisk-segments.json
Prefer a namespace? Register the registry once.
Terminal
npx shadcn@latest registry add @seanlynch=https://seanportfol.io/r/{name}.json
Terminal
npx shadcn@latest add @seanlynch/grimkit-obelisk-segments

Usage

Copy this example into a separate file, not over the installed component. The @/ alias points to your source root. In Next.js this is a Client Component; Vite also accepts the directive. Replace demonstration actions with your application logic.

components/examples/obelisk-segments-demo.tsx
"use client";

import { ObeliskSegments } from "@/components/grimkit/obelisk-segments";

export default function Example() {
  return <ObeliskSegments label="Power mode" name="power" defaultValue="balanced"
    options={[
      { value: "low", label: "Low" },
      { value: "balanced", label: "Balanced" },
      { value: "high", label: "High" },
    ]} />;
}

API Reference

Props on Obelisk Segments. Consult the included TypeScript source for supported native attributes.

PropTypeDefault
labelRequired accessible group name.string
name / form / required / disabledNative radio form attributes; disabled affects every option.string / string / boolean / boolean
value / defaultValueControlled or initial selected option. Empty string means no selection.string""
onValueChangeReports a change immediately, independently of decorative animation.(value: string) => void
optionsValue, label and optional disabled state for each option.readonly { value: string; label: string; disabled?: boolean }[]
classNameAdditional class on the control surface; does not replace the material styles.string
effectsAuto honours reduced motion; off disables decorative motion and particles."auto" | "off""auto"

Information

Category
GrimKit
Files
  • components/grimkit/obelisk-segments.tsx
  • components/grimkit/core.tsx
  • components/grimkit/foundation.css
  • components/grimkit/materials.css
  • components/grimkit/modern-foundation.css
  • components/grimkit/modern-obelisk-segments.css
  • components/grimkit/modern-obelisk-segments-materials.css
  • components/grimkit/LICENSE.txt
  • components/grimkit/Saira-OFL.txt
  • components/grimkit/JetBrainsMono-OFL.txt
Dependencies
React 19 and React DOM 19; no additional runtime packages
Compatibility
React 19, TypeScript, CSS imports, Modern browsers
Version
0.2.0
Updated
Sep 22, 2026
Registry
grimkit-obelisk-segments