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-mic-selector

Aurora AI Mic Selector

aurora-dinglebear-ai/aurora-ai-mic-selector
FreeBlock

Aurora-native mic selector parity surface from AI Elements.

Install it

npx shadcn@latest add https://aurora.dinglebear.ai/r/aurora-ai-mic-selector.json

Source

registry/aurora/blocks/ai/elements/mic-selector.tsxaurora.dinglebear.ai/r/aurora-ai-mic-selector.json
1"use client"
2
3/**
4 * Aurora MicSelector — microphone picker with a live input-level meter + mute.
5 *
6 * Visual layer lives in registry/aurora/styles/aurora-components.css
7 * (`@layer aurora-components`, reading only `--aurora-*` tokens) so it renders
8 * identically in dark + `.light`. Architecture stays shadcn/registry-grade: a Radix `Select`
9 * for device choice, `forwardRef`, `displayName`, `React.memo`, full a11y on the
10 * mute toggle (`aria-pressed` + `aria-label`), and the original prop/escape-hatch
11 * API (`value`/`defaultValue`/`onValueChange`/`name`/`disabled`/`required`/
12 * `triggerId`/`triggerLabel`).
13 */
14
15import * as React from "react"
16import { Mic, MicOff } from "lucide-react"
17import {
18 Select,
19 SelectContent,
20 SelectGroup,
21 SelectItem,
22 SelectTrigger,
23 SelectValue,
24} from "@/registry/aurora/ui/select"
25import { Button } from "@/registry/aurora/ui/button"
26import { cn } from "@/lib/utils"
27
28export interface MicSelectorProps extends React.HTMLAttributes<HTMLDivElement> {
29 /** Available input devices, listed in the dropdown. */
30 devices: string[]
31 /** Controlled selected device. */
32 value?: string
33 /** Uncontrolled initial device (defaults to `devices[0]`). */
34 defaultValue?: string
35 onValueChange?: (value: string) => void
36 /** Form field name for the underlying select. */
37 name?: string
38 disabled?: boolean
39 required?: boolean
40 /** `id` wired onto the select trigger (label association). */
41 triggerId?: string
42 /** Accessible label for the select trigger. Defaults to "Microphone". */
43 triggerLabel?: string
44 /** Controlled mute state for the toggle. */
45 muted?: boolean
46 /** Uncontrolled initial mute state. */
47 defaultMuted?: boolean
48 onMutedChange?: (muted: boolean) => void
49}
50
51// Styles: registry/aurora/styles/aurora-components.css (@layer aurora-components).
52
53// Bar layout: varying widths (in flex units) with a peaking dot near center.
54const BAR_WEIGHTS = [1, 1.2, 1.6, 1.4, 2, 1.5, 1.4, 1.8, "peak", 1.9, 1.5, 1.3, 1.7, 1.4, 2, 1.6, 1.3, 1.8, 1.4, 1.2]
55
56// ─── Component ──────────────────────────────────────────────────────────────
57
58const MicSelector = (
59 { ref,
60 devices,
61 value,
62 defaultValue,
63 onValueChange,
64 name,
65 disabled,
66 required,
67 triggerId,
68 triggerLabel,
69 muted,
70 defaultMuted,
71 onMutedChange,
72 className,
73// … truncated

What it pulls in

npm packages

  • lucide-react@^0.487.0

Other registry items

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

Files it writes

  • registry/aurora/blocks/ai/elements/mic-selector.tsx

Facts

Registry
aurora
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-04
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-actionauroraBlocksFree1 dep
Aurora AI Actionsaurora-ai-actionsauroraBlocksFree1 dep
Aurora AI Agentaurora-ai-agentauroraBlocksFree1 dep
Aurora AI Image Gridaurora-ai-ai-image-gridauroraBlocksFree1 dep
Aurora AI Attachmentsaurora-ai-attachmentsauroraBlocksFree1 dep
Aurora AI Audio Playeraurora-ai-audio-playerauroraBlocksFree1 dep
Aurora AI Branchaurora-ai-branchauroraBlocksFree1 dep
Aurora AI Canvasaurora-ai-canvasauroraBlocksFree1 dep
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex