Skip to main content

Interface: AudioBlockProps

@headstartwp/core.react.AudioBlockProps

The interface for components rendered by AudioBlock

Hierarchy

Properties

attributes

Optional attributes: Object

Type declaration

NameType
alignAlign
blockStyle?string
borderBorder
colorsColors
spacingSpacing
typographyTypography
width?string

Inherited from

IBlockAttributes.attributes

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

IBlockAttributes.children

Defined in

packages/core/src/react/blocks/types.ts:77


className

Optional className: string

Inherited from

IBlockAttributes.className

Defined in

packages/core/src/react/blocks/types.ts:73


domNode

Optional domNode: Element

Inherited from

IBlockAttributes.domNode

Defined in

packages/core/src/react/blocks/types.ts:75


htmlAnchor

Optional htmlAnchor: string

Inherited from

IBlockAttributes.htmlAnchor

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

IBlockAttributes.name

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>

Inherited from

IBlockAttributes.style

Defined in

packages/core/src/react/blocks/types.ts:74