Video
@/components/kamod-ui/video
Installation
Import Video from `@/components/kamod-ui/video`.
pnpm add @kamod-ch/uiUsage
Use controls for playback affordance and provide fallback text where needed.
import { Video } from "@/components/kamod-ui/video";<Video />Video With Source
Provide a source file and keep controls enabled.
Muted Preview
Use muted autoplay previews in media galleries.
API Reference
Props, slots and variants for this component.
Video
Video component props and accepted values.
| Prop | Type | Default |
|---|---|---|
| controls | boolean | true |
| muted / autoPlay / loop | boolean | false |
| children | source tracks and fallback | undefined |
Accessibility Notes
Provide captions/subtitles when possible and avoid autoplay with sound to reduce accessibility friction.