Skip to content
Kits

AudioDeviceSelect

Composable audio input selector with permission, loading, default-device, and disconnected states.

Examples

Device and permission states

Default and optional inputs, disconnected devices, loading, and microphone permission states. Device lists and permission requests are supplied by the host application.

Composition

Device selector with preview

Omit children to use the built-in selector, status, and permission controls. Supply a device list and keep its selected id when a device disconnects.

  • <AudioDeviceSelect>
    • <AudioDeviceSelectTrigger>
      • <AudioDeviceSelectValue />
      </AudioDeviceSelectTrigger>
    • <AudioDeviceSelectContent>
      • <AudioDeviceSelectItem />
      </AudioDeviceSelectContent>
    • <AudioDeviceSelectPreview>
      • <AudioVisualizer />
      </AudioDeviceSelectPreview>
    • <AudioDeviceSelectStatus />
    • <AudioDeviceSelectPermission />
    </AudioDeviceSelect>

Installation

Use this command to install the component.

Registry command
See registry manifest

Usage

Dependencies

Raw code

Installed component source and support files

src/registry/sources/control-ui/audio-device-select.tsx

Knobs

Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.

--cui-audio-device-select-* · 1 knobsHow the cascade resolves
--cui-audio-device-select-status-foreground<color>var(--muted-foreground)