Video player: Bar
variant="bar" puts the controls under the picture on the page surface. They never hide or cover the video.
This adds the example as components/examples/video-player/bar.tsx, together with the Video player component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/video-player-bar.jsonTo add only the component, follow the Video player installation.
Props in this example
The Video player props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
variantoverlay floats auto-hiding controls over the video. bar puts them below it. | "overlay" | "bar" | "overlay" |
| Prop | Type | Default |
|---|---|---|
offsetSeconds to jump. Negative values go back. | number | 10 |
Every prop is in the Video player API reference.
See them all, with keyboard support and accessibility notes, on the Video player page.
- ButtonButtons in every variant and size, with a built-in loading, success and error flow that skips the spinner for fast requests.
- Dropdown menuA menu of actions and options behind a button, with groups, submenus, checkbox and radio items, and shortcuts.
- KbdKey caps for shortcuts that show the right symbols on every platform, read them out properly and press down with the real keys.
- MotionThe easing curves, durations and reduced-motion check every component animates with, plus hooks for size morphs and sliding highlights.
- SpinnerA loading indicator with Apple-style ticks or a breathing ring that can wait before showing and stay long enough not to flicker.
- TooltipA short hint on hover or keyboard focus that opens after a brief rest, switches instantly between neighbours and shows shortcuts.