Interface: AudioBlockProps
@headstartwp/core.react.AudioBlockProps
The interface for components rendered by AudioBlock
Hierarchy
↳
AudioBlockProps
Properties
attributes
• Optional
attributes: Object
Type declaration
Name | Type |
---|---|
align | Align |
blockStyle? | string |
border | Border |
colors | Colors |
spacing | Spacing |
typography | Typography |
width? | string |
Inherited from
Defined in
packages/core/src/react/blocks/types.ts:79
autoplay
• Optional
autoplay: boolean
Whether the audio should be autoplayable
Defined in
packages/core/src/react/blocks/AudioBlock.tsx:19
caption
• Optional
caption: string
Audio caption
Defined in
packages/core/src/react/blocks/AudioBlock.tsx:24
children
• Optional
children: ReactNode
Inherited from
Defined in
packages/core/src/react/blocks/types.ts:77
className
• Optional
className: string
Inherited from
Defined in
packages/core/src/react/blocks/types.ts:73
domNode
• Optional
domNode: Element
Inherited from
Defined in
packages/core/src/react/blocks/types.ts:75
htmlAnchor
• Optional
htmlAnchor: string
Inherited from
Defined in
packages/core/src/react/blocks/types.ts:76
loop
• Optional
loop: boolean
Whether the audio should be played in a loop
Defined in
packages/core/src/react/blocks/AudioBlock.tsx:29
name
• name: string
Inherited from
Defined in
packages/core/src/react/blocks/types.ts:72
preload
• Optional
preload: string
Whether to preload the audio or not
Defined in
packages/core/src/react/blocks/AudioBlock.tsx:34
src
• src: string
The audio source URL.
Defined in
packages/core/src/react/blocks/AudioBlock.tsx:14
style
• Optional
style: Record
<string
, string
>