Video

An HTML5 video with a play facade.

API reference

Inputs

PropTypeDefaultDescription
srcstring''Video source URL for the underlying `<video>` element.
posterstring''Poster image URL shown before playback starts.
aspectstring'video'Aspect ratio: `video` (16/9), `square` (1/1), or any CSS ratio.
controlsbooleantrueWhether to show native controls once playback has started.
autoplaybooleanfalseWhether to start playing automatically (hides the play facade).
loopbooleanfalseWhether the video loops when it reaches the end.
mutedbooleanfalseWhether the video starts muted.
roundedstring'rounded-xl'Tailwind border-radius utility applied to the container.
playLabelstringAccessible label override for the play-button facade.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.