BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aurora/aurora-ai-controls

Aurora AI Controls

aurora-dinglebear-ai/aurora-ai-controls
UnverifiedBlock

Aurora-native toolbar controls with horizontal and vertical layouts.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-ai-controls.json

Source

registry/aurora/blocks/ai/elements/controls.tsxraw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-ai-controls.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import type { LucideIcon } from "lucide-react"
5import { cn } from "@/lib/utils"
6
7/* ------------------------------------------------------------------ *
8 * Aurora · Controls (AI element)
9 *
10 * A toolbar cluster — a raised, rounded panel holding icon ControlButtons
11 * with an optional active (cyan ring + tint) state, separated by hairline
12 * ControlsDividers. Lays out horizontally by default; orientation="vertical"
13 * stacks the cluster and rotates the dividers.
14 *
15 * Architecture (forwardRef, displayName, compound parts, HTMLAttributes
16 * passthrough, full a11y on the button) is kept from the Aurora registry.
17 * Prefer Lucide icon components for `icon`; raw SVG strings are intentionally
18 * rejected so untrusted markup can never reach the DOM.
19 * ------------------------------------------------------------------ */
20
21type ControlsOrientation = "horizontal" | "vertical"
22type ControlIcon = LucideIcon | React.ReactElement<React.SVGProps<SVGSVGElement>>
23
24const OrientationContext = React.createContext<ControlsOrientation>("horizontal")
25
26export interface ControlsProps extends React.HTMLAttributes<HTMLDivElement> {
27 orientation?: ControlsOrientation
28}
29
30export interface ControlButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
31 /**
32 * Lucide icon component or trusted SVG element. Mutually optional with `children`
33 * (text-labelled buttons like "Fit").
34 */
35 icon?: ControlIcon
36 /** Active / selected state — cyan ring, tint fill and accent glyph. */
37 active?: boolean
38}
39
40const Controls = ({ ref, orientation = "horizontal", className, style, children, ...props }: ControlsProps & { ref?: React.Ref<HTMLDivElement> }) => {
41 const vertical = orientation === "vertical"
42 return (
43 <OrientationContext.Provider value={orientation}>
44 <div
45 ref={ref}
46 className={cn("aurora-controls", className)}
47 data-orientation={orientation}
48 style={{
49 display: "inline-flex",
50 flexDirection: vertical ? "column" : "row",
51 alignItems: "center",
52 gap: 4,
53 boxSizing: "border-box",
54 padding: 6,
55 background: "var(--aurora-surface-raised)",
56 border: "1px solid var(--aurora-border-strong)",
57 borderRadius: "var(--aurora-radius-1)",
58 boxShadow: "var(--aurora-shadow-medium), var(--aurora-highlight-medium)",
59 ...style,
60 }}
61 {...props}
62// … truncated

What it pulls in

npm packages

  • lucide-react@^0.487.0

Other registry items

  • @aurora/aurora-tokens
  • @aurora/aurora-ai-elements

Files it writes

  • registry/aurora/blocks/ai/elements/controls.tsx

Facts

Registry
aurora
Type
registry:block
Access
Unverified
Files written
1
Licence
AGPL-3.0
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

aurora.dinglebear.ai dinglebear-ai/aurora on GitHub Raw registry item This item as JSON

More from aurora

All 176 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora AI Actionaurora-ai-actionauroraBlocksUnverified1 dep
Aurora AI Actionsaurora-ai-actionsauroraBlocksUnverified1 dep
Aurora AI Agentaurora-ai-agentauroraBlocksUnverified1 dep
Aurora AI Image Gridaurora-ai-ai-image-gridauroraBlocksUnverified1 dep
Aurora AI Attachmentsaurora-ai-attachmentsauroraBlocksUnverified1 dep
Aurora AI Audio Playeraurora-ai-audio-playerauroraBlocksUnverified1 dep
Aurora AI Branchaurora-ai-branchauroraBlocksUnverified1 dep
Aurora AI Canvasaurora-ai-canvasauroraBlocksUnverified1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex