AUDIO_DEFAULTS
const
Media
Canonical default prop values for OrigamAudio. Exported for story-side iteration and consumer reference. Never referenced from withDefaults() itself — the Vue SFC compiler only resolves inline literals there.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- tag: 'div'
- Root HTML element.
- variant: AUDIO_VARIANT.EXPANDED
- Full-width expanded layout.
- coverPosition: COVER_POSITION.LEFT
- Cover art aligned left.
- position: POSITION.RELATIVE
- CSS position relative.
- autoplay: false
- No autoplay by default.
- muted: false
- Audio is not muted by default.
- loop: false
- Playback does not loop by default.
- preload: 'metadata'
- Only metadata is preloaded.
- controls: 'custom'
- Custom DS controls, not native browser controls.
- playbackRates: [0.5, 0.75, 1, 1.25, 1.5, 2] as ReadonlyArray<number>
- playbackRate: 1
- Default playback speed (1×).
- allowRemotePlayback: false
- Remote playback (AirPlay / Cast) disabled.
- downloadable: false
- Download button hidden.
- waveform: false
- Waveform visualisation disabled.
- waveformColor: 'currentColor'
- Waveform colour inherits from parent text colour.
Ecosystem
Used by
Composables and components that consume this constant.
OrigamAudio
Usage
Examples
Ready-to-paste code snippets using this constant.
Overriding a single default