Font Awesome Build Awesome
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Search this website ⌘KCtrl+K Light Dark System Docs Select Color Scheme Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme View Project on GitHub Star Project on GitHub
Start Components Docs Help
Login Log into your account
Web Awesome Font Awesome Build Awesome
Search this site… /
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Light Dark System Docs Select Color Scheme Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme

Getting Started

  • Installation
  • Usage
  • Forms
  • Localization
  • Frameworks
  • Using with AI
  • Figma Design Kit ProThis requires access to Web Awesome Pro
  • Server Rendering

Resources

  • Accessibility
  • Browser Support
  • Contributing
  • Patterns ProPatterns require access to Web Awesome Pro
  • Migrating from Shoelace
  • Visual Tests
  • Changelog
  • Help & Support

Theming & Utilities

  • Overview
  • Built-in Themes
  • Color Palettes
  • Design Tokens
  • Customizing & Theming
  • CSS Utilities

Actions

  • Button
  • Button Group
  • Copy Button
  • Dropdown
    • Dropdown Item

Forms

  • Checkbox
  • Checkbox Group
  • Color Picker
  • Combobox ProThis requires access to Web Awesome Pro
  • Date Input ProThis requires access to Web Awesome Pro
  • Date Picker ProThis requires access to Web Awesome Pro
  • File Input ProThis requires access to Web Awesome Pro
  • Input
  • Known Date
  • Number Input
  • OTP Input
  • Radio Group
    • Radio
  • Rating
  • Select
    • Option
  • Slider
  • Switch
  • Textarea
  • Time Input

Layout

  • Accordion
    • Accordion Item
  • Card
  • Details
  • Dialog
  • Divider
  • Drawer
  • Page
  • Scroller
  • Split Panel

Navigation

  • Breadcrumb
    • Breadcrumb Item
  • Pagination
  • Tab Group
    • Tab
    • Tab Panel
  • Tree
    • Tree Item

Feedback

  • Badge
  • Callout
  • Progress Bar
  • Progress Ring
  • Skeleton
  • Spinner
  • Tag
  • Toast
    • Toast Item
  • Tooltip

Media

  • Animated Image
  • Avatar
  • Carousel
    • Carousel Item
  • Comparison
  • Icon
  • Markdown
  • QR Code
  • Video ProThis requires access to Web Awesome Pro
  • Video Playlist ProThis requires access to Web Awesome Pro
  • Zoomable Frame

Data Viz ProThis requires access to Web Awesome Pro

  • Bar Chart
  • Bubble Chart
  • Data Grid
  • Doughnut Chart
  • Line Chart
  • Pie Chart
  • Polar Area Chart
  • Radar Chart
  • Scatter Chart
  • Sparkline
  • Advanced Usage

Helpers

  • Animation
  • Format Bytes
  • Format Date
  • Format Number
  • Include
  • Intersection Observer
  • Mutation Observer
  • Popover
  • Popup
  • Random Content
  • Relative Time
  • Resize Observer

Video Playlist

  • Examples
  • Controls Preset
  • Navigating Programmatically
  • Listening for Changes
  • API
  • Importing
  • Slots
  • Attributes & Properties
  • Methods
  • Events
  • CSS Parts
  • Dependencies
On This Page...
  • Examples
  • Controls Preset
  • Navigating Programmatically
  • Listening for Changes
  • API
  • Importing
  • Slots
  • Attributes & Properties
  • Methods
  • Events
  • CSS Parts
  • Dependencies

Video Playlist

<wa-video-playlist>
ProIncluded with Web Awesome Pro Experimental Media Since 3.7

Video playlists wrap multiple <wa-video> elements into a playlist with navigation controls.

Get Video Playlist with Web Awesome Pro! Subscribing to Web Awesome Pro gives you every Pro component, plus premium themes, color tools, team collaboration, and more.
  • Pro Components
  • Native Styles
  • CSS + Layout Utilities
  • Ever-Growing Pattern Library
  • Unlimited Hosted Projects
  • Pre-Built Pro Themes
  • Pro Theme Builder
  • Pro Color Tools
  • Official Figma Design Kit
  • WA Pro Perpetual License
  • Actual Human™ Support
Get Web Awesome Pro + Video Playlist!

Already have Pro? Log in

<wa-video-playlist>
  <wa-video title="Creating a Font Awesome Kit" poster="/assets/images/fa-part-1.jpg">
    <source src="https://uploads.webawesome.com/01-create-your-first-kit.mp4" type="video/mp4" />
    <track
      src="https://uploads.webawesome.com/01-create-your-first-kit.vtt"
      kind="subtitles"
      srclang="en"
      label="English"
    />
  </wa-video>

  <wa-video title="Using Kits in Your Project" poster="/assets/images/fa-part-2.jpg">
    <source src="https://uploads.webawesome.com/02-using-kits-in-your-project.mp4" type="video/mp4" />
    <track
      src="https://uploads.webawesome.com/02-using-kits-in-your-project.vtt"
      kind="subtitles"
      srclang="en"
      label="English"
    />
  </wa-video>
  <wa-video title="Downloading Kits" poster="/assets/images/kits.jpg">
    <source
      src="https://uploads.webawesome.com/Doing%20More%20with%20FA%20Ep.%203%20'Downloading%20Kits'.mp4"
      type="video/mp4"
    />
  </wa-video>
  <wa-video title="Using Teams" poster="/assets/images/teams.jpg">
    <source
      src="https://uploads.webawesome.com/Doing%20More%20with%20FA%20Ep.%202%20'Using%20Teams'.mp4"
      type="video/mp4"
    />
  </wa-video>
</wa-video-playlist>

Examples

Link to This Section

Controls Preset

Link to This Section

Use the controls attribute to set the controls preset for all videos in the playlist. Accepts the same values as <wa-video>: none, standard, or full (default).

<wa-video-playlist controls="standard">
  <wa-video title="Creating a Font Awesome Kit" poster="/assets/images/fa-part-1.jpg">
    <source src="https://uploads.webawesome.com/01-create-your-first-kit.mp4" type="video/mp4" />
    <track
      src="https://uploads.webawesome.com/01-create-your-first-kit.vtt"
      kind="subtitles"
      srclang="en"
      label="English"
    />
  </wa-video>

  <wa-video title="Using Kits in Your Project" poster="/assets/images/fa-part-2.jpg">
    <source src="https://uploads.webawesome.com/02-using-kits-in-your-project.mp4" type="video/mp4" />
    <track
      src="https://uploads.webawesome.com/02-using-kits-in-your-project.vtt"
      kind="subtitles"
      srclang="en"
      label="English"
    />
  </wa-video>
</wa-video-playlist>

Navigating Programmatically

Link to This Section

Use the next(), previous(), and goTo(index) methods to navigate between videos programmatically.

First Previous Next
<div>
  <wa-video-playlist id="demo-playlist">
    <wa-video title="Creating a Font Awesome Kit" poster="/assets/images/fa-part-1.jpg">
      <source src="https://uploads.webawesome.com/01-create-your-first-kit.mp4" type="video/mp4" />
      <track
        src="https://uploads.webawesome.com/01-create-your-first-kit.vtt"
        kind="subtitles"
        srclang="en"
        label="English"
      />
    </wa-video>

    <wa-video title="Using Kits in Your Project" poster="/assets/images/fa-part-2.jpg">
      <source src="https://uploads.webawesome.com/02-using-kits-in-your-project.mp4" type="video/mp4" />
      <track
        src="https://uploads.webawesome.com/02-using-kits-in-your-project.vtt"
        kind="subtitles"
        srclang="en"
        label="English"
      />
    </wa-video>
    <wa-video title="Downloading Kits" poster="/assets/images/kits.jpg">
      <source
        src="https://uploads.webawesome.com/Doing%20More%20with%20FA%20Ep.%203%20'Downloading%20Kits'.mp4"
        type="video/mp4"
      />
    </wa-video>
    <wa-video title="Using Teams" poster="/assets/images/teams.jpg">
      <source
        src="https://uploads.webawesome.com/Doing%20More%20with%20FA%20Ep.%202%20'Using%20Teams'.mp4"
        type="video/mp4"
      />
    </wa-video>
  </wa-video-playlist>

  <wa-divider></wa-divider>

  <div class="wa-cluster">
    <wa-button appearance="filled" onclick="document.getElementById('demo-playlist').goTo(0)">First</wa-button>
    <wa-button appearance="filled" onclick="document.getElementById('demo-playlist').previous()">Previous</wa-button>
    <wa-button appearance="filled" onclick="document.getElementById('demo-playlist').next()">Next</wa-button>
  </div>
</div>

Listening for Changes

Link to This Section

The wa-video-change event fires when the active video changes, providing the previous index, current index, and the incoming video's metadata.

No change yet.
<wa-video-playlist id="event-playlist">
  <wa-video title="Creating a Font Awesome Kit" poster="/assets/images/fa-part-1.jpg">
    <source src="https://uploads.webawesome.com/01-create-your-first-kit.mp4" type="video/mp4" />
    <track
      src="https://uploads.webawesome.com/01-create-your-first-kit.vtt"
      kind="subtitles"
      srclang="en"
      label="English"
    />
  </wa-video>

  <wa-video title="Using Kits in Your Project" poster="/assets/images/fa-part-2.jpg">
    <source src="https://uploads.webawesome.com/02-using-kits-in-your-project.mp4" type="video/mp4" />
    <track
      src="https://uploads.webawesome.com/02-using-kits-in-your-project.vtt"
      kind="subtitles"
      srclang="en"
      label="English"
    />
  </wa-video>
</wa-video-playlist>

<div
  id="event-log"
  style="margin-block-start: var(--wa-space-m); font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet);"
>
  No change yet.
</div>

<script>
  const playlist = document.getElementById('event-playlist');
  const log = document.getElementById('event-log');

  playlist.addEventListener('wa-video-change', event => {
    log.textContent = `Changed from index ${event.detail.previousIndex} → ${event.detail.currentIndex}: "${event.detail.video.title}"`;
  });
</script>

API

Link to This Section

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/[email protected]/components/video-playlist/video-playlist.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/video-playlist/video-playlist.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/video-playlist/video-playlist.js';

To import this component for React 18 or below, use the following code:

import WaVideoPlaylist from '@awesome.me/webawesome/dist/react/video-playlist/index.js';

Slots

Link to This Section

Learn more about using slots.

Name Description
(default) The default slot. Place <wa-video> elements to create a playlist.

Attributes & Properties

Link to This Section

Learn more about attributes and properties.

Name Description Reflects
controls
controls
The controls preset forwarded to each child <wa-video>.
Type 'none' | 'standard' | 'full'
Default 'full'
iconLibrary
icon-library
Icon library used for placeholder icons.
Type string
Default 'system'

Methods

Link to This Section

Learn more about methods.

Name Description Arguments
goTo() Jumps to the video at the given index. index: number
next() Plays the next video in the playlist.
previous() Plays the previous video in the playlist.

Events

Link to This Section

Learn more about events.

Name Description
wa-video-change Emitted when the active video changes.

CSS Parts

Link to This Section

Learn more about CSS parts.

Name Description CSS selector
playlist The playlist sidebar container. ::part(playlist)
playlist-duration The duration text within a playlist item. ::part(playlist-duration)
playlist-item An individual playlist item button. ::part(playlist-item)
playlist-thumbnail The thumbnail image within a playlist item. ::part(playlist-thumbnail)
playlist-title The title text within a playlist item. ::part(playlist-title)
video-playlist The component's outer wrapper. ::part(video-playlist)
base Deprecated. Use the video-playlist part instead. ::part(base)

Dependencies

Link to This Section

This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.

  • <wa-button>
  • <wa-dropdown>
  • <wa-dropdown-item>
  • <wa-icon>
  • <wa-popover>
  • <wa-popup>
  • <wa-slider>
  • <wa-spinner>
  • <wa-tooltip>
  • <wa-video>
Need a hand? Report a bug Ask for help
Go Make Something Awesome
Version 3.12.0 © Fonticons, Inc.
  • Terms
  • Privacy
  • Refunds
  • Core License
  • Pro License

Quick Links

  • Components
  • CSS Utilities
  • Theming
  • Using with AI
  • Changelog
  • Help & Support

Recent Searches

    D'oh! No results for “”

    Suggest on GitHub Ask on Discord
    Navigate Select
    Close Esc

    We Have Cookies…

    We use cookies to make webawesome.com work better by storing limited information about your usage.

    We value your privacy, so we won't use them for evil or ask you to join the dark side.

    Customize
    Necessary Only Accept All
    Strictly Necessary
    Required to make the site function correctly — cannot be turned off
    Functionality Analytics
    Cancel Confirm Cookie Choices