Documentation
ef-recorder-device-picker
Select a camera or microphone for a recording.
Select a camera or microphone for a recording.
Attributes
2 of 2
disabled
- React prop
disabled- Type
boolean- Default
false- Description
- Disable device selection.
kind
- React prop
kind- Type
videoinput | audioinput- Default
- —
- Description
- The input kind.
Slots
Slots| Slot | Description |
|---|
label | Replace the visible label. |
CSS Parts
CSS parts| Part | Description |
|---|
select | The device list. |
CSS Custom Properties
CSS custom properties| Property | Default | Description |
|---|
--ef-recorder-accent | var(--ef-color-primary, light-dark(#245fcb, #6ea8fe)) | The focus indicator color. |
--ef-recorder-color | var(--ef-color-text, CanvasText) | The text color. |
--ef-recorder-control-background | var(--ef-color-bg-panel, Canvas) | The control background. |
--ef-recorder-control-border | var(--ef-color-text-muted, #777) | The control border color. |
--ef-recorder-font | 0.875rem/1.4 system-ui, sans-serif | The control font. |
--ef-recorder-radius | 0.375rem | The control corner radius. |
Events
Events| Event | Detail | Description |
|---|
recorder-device-change | { kind: "videoinput" | "audioinput"; deviceId: string } | Fires with the selected kind and device ID. |