diff --git a/site/src/components/docs/demos/slider/html/tailwind/BasicUsage.astro b/site/src/components/docs/demos/slider/html/tailwind/BasicUsage.astro
new file mode 100644
index 00000000..c515bacd
--- /dev/null
+++ b/site/src/components/docs/demos/slider/html/tailwind/BasicUsage.astro
@@ -0,0 +1,9 @@
+---
+import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro';
+import html from './BasicUsage.html?raw';
+---
+
+
+
diff --git a/site/src/components/docs/demos/slider/html/tailwind/BasicUsage.html b/site/src/components/docs/demos/slider/html/tailwind/BasicUsage.html
new file mode 100644
index 00000000..3e9018dc
--- /dev/null
+++ b/site/src/components/docs/demos/slider/html/tailwind/BasicUsage.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
diff --git a/site/src/components/docs/demos/slider/html/tailwind/BasicUsage.ts b/site/src/components/docs/demos/slider/html/tailwind/BasicUsage.ts
new file mode 100644
index 00000000..5bb4d98f
--- /dev/null
+++ b/site/src/components/docs/demos/slider/html/tailwind/BasicUsage.ts
@@ -0,0 +1 @@
+import '@videojs/html/ui/slider';
diff --git a/site/src/components/docs/demos/slider/html/tailwind/WithPreview.astro b/site/src/components/docs/demos/slider/html/tailwind/WithPreview.astro
new file mode 100644
index 00000000..f8e0f424
--- /dev/null
+++ b/site/src/components/docs/demos/slider/html/tailwind/WithPreview.astro
@@ -0,0 +1,9 @@
+---
+import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro';
+import html from './WithPreview.html?raw';
+---
+
+
+
diff --git a/site/src/components/docs/demos/slider/html/tailwind/WithPreview.html b/site/src/components/docs/demos/slider/html/tailwind/WithPreview.html
new file mode 100644
index 00000000..7e8da94a
--- /dev/null
+++ b/site/src/components/docs/demos/slider/html/tailwind/WithPreview.html
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/site/src/components/docs/demos/slider/html/tailwind/WithPreview.ts b/site/src/components/docs/demos/slider/html/tailwind/WithPreview.ts
new file mode 100644
index 00000000..5bb4d98f
--- /dev/null
+++ b/site/src/components/docs/demos/slider/html/tailwind/WithPreview.ts
@@ -0,0 +1 @@
+import '@videojs/html/ui/slider';
diff --git a/site/src/components/docs/demos/slider/react/tailwind/BasicUsage.tsx b/site/src/components/docs/demos/slider/react/tailwind/BasicUsage.tsx
new file mode 100644
index 00000000..abe0166e
--- /dev/null
+++ b/site/src/components/docs/demos/slider/react/tailwind/BasicUsage.tsx
@@ -0,0 +1,21 @@
+import { Slider } from '@videojs/react';
+import { useState } from 'react';
+
+export default function BasicUsage() {
+ const [value, setValue] = useState(50);
+
+ return (
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/site/src/components/docs/demos/slider/react/tailwind/WithPreview.tsx b/site/src/components/docs/demos/slider/react/tailwind/WithPreview.tsx
new file mode 100644
index 00000000..803d7081
--- /dev/null
+++ b/site/src/components/docs/demos/slider/react/tailwind/WithPreview.tsx
@@ -0,0 +1,27 @@
+import { Slider } from '@videojs/react';
+import { useState } from 'react';
+
+export default function WithPreview() {
+ const [value, setValue] = useState(50);
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/site/src/components/docs/demos/thumbnail/html/tailwind/BasicUsage.astro b/site/src/components/docs/demos/thumbnail/html/tailwind/BasicUsage.astro
new file mode 100644
index 00000000..c515bacd
--- /dev/null
+++ b/site/src/components/docs/demos/thumbnail/html/tailwind/BasicUsage.astro
@@ -0,0 +1,9 @@
+---
+import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro';
+import html from './BasicUsage.html?raw';
+---
+
+
+
diff --git a/site/src/components/docs/demos/thumbnail/html/tailwind/BasicUsage.html b/site/src/components/docs/demos/thumbnail/html/tailwind/BasicUsage.html
new file mode 100644
index 00000000..871ee14f
--- /dev/null
+++ b/site/src/components/docs/demos/thumbnail/html/tailwind/BasicUsage.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
diff --git a/site/src/components/docs/demos/thumbnail/html/tailwind/BasicUsage.ts b/site/src/components/docs/demos/thumbnail/html/tailwind/BasicUsage.ts
new file mode 100644
index 00000000..93446176
--- /dev/null
+++ b/site/src/components/docs/demos/thumbnail/html/tailwind/BasicUsage.ts
@@ -0,0 +1,2 @@
+import '@videojs/html/video/player';
+import '@videojs/html/ui/thumbnail';
diff --git a/site/src/components/docs/demos/thumbnail/react/tailwind/BasicUsage.tsx b/site/src/components/docs/demos/thumbnail/react/tailwind/BasicUsage.tsx
new file mode 100644
index 00000000..b540c195
--- /dev/null
+++ b/site/src/components/docs/demos/thumbnail/react/tailwind/BasicUsage.tsx
@@ -0,0 +1,24 @@
+import { createPlayer, Thumbnail } from '@videojs/react';
+import { Video, videoFeatures } from '@videojs/react/video';
+
+const Player = createPlayer({ features: videoFeatures });
+
+export default function TextTrackUsage() {
+ return (
+
+
+
+
+
+
+ );
+}
diff --git a/site/src/components/docs/demos/tooltip/html/tailwind/BasicUsage.astro b/site/src/components/docs/demos/tooltip/html/tailwind/BasicUsage.astro
new file mode 100644
index 00000000..c515bacd
--- /dev/null
+++ b/site/src/components/docs/demos/tooltip/html/tailwind/BasicUsage.astro
@@ -0,0 +1,9 @@
+---
+import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro';
+import html from './BasicUsage.html?raw';
+---
+
+
+
diff --git a/site/src/components/docs/demos/tooltip/html/tailwind/BasicUsage.html b/site/src/components/docs/demos/tooltip/html/tailwind/BasicUsage.html
new file mode 100644
index 00000000..94b33636
--- /dev/null
+++ b/site/src/components/docs/demos/tooltip/html/tailwind/BasicUsage.html
@@ -0,0 +1,15 @@
+
+
+
+ Tooltip content
+
+
diff --git a/site/src/components/docs/demos/tooltip/html/tailwind/BasicUsage.ts b/site/src/components/docs/demos/tooltip/html/tailwind/BasicUsage.ts
new file mode 100644
index 00000000..82ad9736
--- /dev/null
+++ b/site/src/components/docs/demos/tooltip/html/tailwind/BasicUsage.ts
@@ -0,0 +1 @@
+import '@videojs/html/ui/tooltip';
diff --git a/site/src/components/docs/demos/tooltip/html/tailwind/Grouping.astro b/site/src/components/docs/demos/tooltip/html/tailwind/Grouping.astro
new file mode 100644
index 00000000..a6f029fb
--- /dev/null
+++ b/site/src/components/docs/demos/tooltip/html/tailwind/Grouping.astro
@@ -0,0 +1,9 @@
+---
+import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro';
+import html from './Grouping.html?raw';
+---
+
+
+
diff --git a/site/src/components/docs/demos/tooltip/html/tailwind/Grouping.html b/site/src/components/docs/demos/tooltip/html/tailwind/Grouping.html
new file mode 100644
index 00000000..f965482d
--- /dev/null
+++ b/site/src/components/docs/demos/tooltip/html/tailwind/Grouping.html
@@ -0,0 +1,43 @@
+
+
+
+ Play video
+
+
+
+
+ Mute audio
+
+
+
+
+ Enter fullscreen
+
+
diff --git a/site/src/components/docs/demos/tooltip/html/tailwind/Grouping.ts b/site/src/components/docs/demos/tooltip/html/tailwind/Grouping.ts
new file mode 100644
index 00000000..385be318
--- /dev/null
+++ b/site/src/components/docs/demos/tooltip/html/tailwind/Grouping.ts
@@ -0,0 +1,2 @@
+import '@videojs/html/ui/tooltip';
+import '@videojs/html/ui/tooltip-group';
diff --git a/site/src/components/docs/demos/tooltip/react/tailwind/BasicUsage.tsx b/site/src/components/docs/demos/tooltip/react/tailwind/BasicUsage.tsx
new file mode 100644
index 00000000..8a07c620
--- /dev/null
+++ b/site/src/components/docs/demos/tooltip/react/tailwind/BasicUsage.tsx
@@ -0,0 +1,17 @@
+import { Tooltip } from '@videojs/react';
+
+export default function BasicUsage() {
+ return (
+
+
+
+ Hover me
+
+
+
+ Tooltip content
+
+
+
+ );
+}
diff --git a/site/src/components/docs/demos/tooltip/react/tailwind/Grouping.tsx b/site/src/components/docs/demos/tooltip/react/tailwind/Grouping.tsx
new file mode 100644
index 00000000..59456098
--- /dev/null
+++ b/site/src/components/docs/demos/tooltip/react/tailwind/Grouping.tsx
@@ -0,0 +1,37 @@
+import { Tooltip } from '@videojs/react';
+
+export default function Grouping() {
+ return (
+
+
+
+
+ Play
+
+
+
+ Play video
+
+
+
+
+ Mute
+
+
+
+ Mute audio
+
+
+
+
+ Fullscreen
+
+
+
+ Enter fullscreen
+
+
+
+
+ );
+}
diff --git a/site/src/content/docs/reference/slider.mdx b/site/src/content/docs/reference/slider.mdx
index b2516add..d8367f71 100644
--- a/site/src/content/docs/reference/slider.mdx
+++ b/site/src/content/docs/reference/slider.mdx
@@ -15,21 +15,31 @@ import Demo from "@/components/docs/demos/Demo.astro";
import BasicUsageDemoReact from "@/components/docs/demos/slider/react/css/BasicUsage";
import basicUsageReactTsx from "@/components/docs/demos/slider/react/css/BasicUsage.tsx?raw";
import basicUsageReactCss from "@/components/docs/demos/slider/react/css/BasicUsage.css?raw";
+import BasicUsageDemoReactTailwind from "@/components/docs/demos/slider/react/tailwind/BasicUsage";
+import basicUsageReactTailwindTsx from "@/components/docs/demos/slider/react/tailwind/BasicUsage.tsx?raw";
import WithPreviewDemoReact from "@/components/docs/demos/slider/react/css/WithPreview";
import withPreviewReactTsx from "@/components/docs/demos/slider/react/css/WithPreview.tsx?raw";
import withPreviewReactCss from "@/components/docs/demos/slider/react/css/WithPreview.css?raw";
+import WithPreviewDemoReactTailwind from "@/components/docs/demos/slider/react/tailwind/WithPreview";
+import withPreviewReactTailwindTsx from "@/components/docs/demos/slider/react/tailwind/WithPreview.tsx?raw";
{/* HTML demos */}
import BasicUsageDemoHtml from "@/components/docs/demos/slider/html/css/BasicUsage.astro";
import basicUsageHtml from "@/components/docs/demos/slider/html/css/BasicUsage.html?raw";
import basicUsageHtmlCss from "@/components/docs/demos/slider/html/css/BasicUsage.css?raw";
import basicUsageHtmlTs from "@/components/docs/demos/slider/html/css/BasicUsage.ts?raw";
+import BasicUsageDemoHtmlTailwind from "@/components/docs/demos/slider/html/tailwind/BasicUsage.astro";
+import basicUsageTailwindHtml from "@/components/docs/demos/slider/html/tailwind/BasicUsage.html?raw";
+import basicUsageTailwindHtmlTs from "@/components/docs/demos/slider/html/tailwind/BasicUsage.ts?raw";
import WithPreviewDemoHtml from "@/components/docs/demos/slider/html/css/WithPreview.astro";
import withPreviewHtml from "@/components/docs/demos/slider/html/css/WithPreview.html?raw";
import withPreviewHtmlCss from "@/components/docs/demos/slider/html/css/WithPreview.css?raw";
import withPreviewHtmlTs from "@/components/docs/demos/slider/html/css/WithPreview.ts?raw";
+import WithPreviewDemoHtmlTailwind from "@/components/docs/demos/slider/html/tailwind/WithPreview.astro";
+import withPreviewTailwindHtml from "@/components/docs/demos/slider/html/tailwind/WithPreview.html?raw";
+import withPreviewTailwindHtmlTs from "@/components/docs/demos/slider/html/tailwind/WithPreview.ts?raw";
## Anatomy
@@ -148,6 +158,15 @@ A slider with track, fill, and thumb.
+
+
+
+
+
@@ -162,6 +181,16 @@ A slider with track, fill, and thumb.
+
+
+
+
+
### With Preview
@@ -179,6 +208,15 @@ A slider with a pointer-tracking preview that displays the value at the current
+
+
+
+
+
@@ -193,6 +231,16 @@ A slider with a pointer-tracking preview that displays the value at the current
+
+
+
+
+
diff --git a/site/src/content/docs/reference/thumbnail.mdx b/site/src/content/docs/reference/thumbnail.mdx
index 33dd75cb..b5f73606 100644
--- a/site/src/content/docs/reference/thumbnail.mdx
+++ b/site/src/content/docs/reference/thumbnail.mdx
@@ -14,6 +14,8 @@ import Demo from "@/components/docs/demos/Demo.astro";
import TextTrackDemoReact from "@/components/docs/demos/thumbnail/react/css/BasicUsage";
import textTrackReactTsx from "@/components/docs/demos/thumbnail/react/css/BasicUsage.tsx?raw";
import textTrackReactCss from "@/components/docs/demos/thumbnail/react/css/BasicUsage.css?raw";
+import TextTrackDemoReactTailwind from "@/components/docs/demos/thumbnail/react/tailwind/BasicUsage";
+import textTrackReactTailwindTsx from "@/components/docs/demos/thumbnail/react/tailwind/BasicUsage.tsx?raw";
import JsonDemoReact from "@/components/docs/demos/thumbnail/react/css/JsonUsage";
import jsonReactTsx from "@/components/docs/demos/thumbnail/react/css/JsonUsage.tsx?raw";
import JsonSpriteDemoReact from "@/components/docs/demos/thumbnail/react/css/JsonSpriteUsage";
@@ -24,6 +26,9 @@ import TextTrackDemoHtml from "@/components/docs/demos/thumbnail/html/css/BasicU
import textTrackHtml from "@/components/docs/demos/thumbnail/html/css/BasicUsage.html?raw";
import textTrackHtmlCss from "@/components/docs/demos/thumbnail/html/css/BasicUsage.css?raw";
import textTrackHtmlTs from "@/components/docs/demos/thumbnail/html/css/BasicUsage.ts?raw";
+import TextTrackDemoHtmlTailwind from "@/components/docs/demos/thumbnail/html/tailwind/BasicUsage.astro";
+import textTrackTailwindHtml from "@/components/docs/demos/thumbnail/html/tailwind/BasicUsage.html?raw";
+import textTrackTailwindHtmlTs from "@/components/docs/demos/thumbnail/html/tailwind/BasicUsage.ts?raw";
import JsonDemoHtml from "@/components/docs/demos/thumbnail/html/css/JsonUsage.astro";
import jsonHtml from "@/components/docs/demos/thumbnail/html/css/JsonUsage.html?raw";
import jsonHtmlTs from "@/components/docs/demos/thumbnail/html/css/JsonUsage.ts?raw";
@@ -152,6 +157,15 @@ React renders a `
` element. Add a `className` to style it:
+
+
+
+
+
@@ -166,60 +180,62 @@ React renders a `
` element. Add a `className` to style it:
+
+
+
+
+
### JSON Array
-
-
-
-
-
+
+
+
-
-
-
-
-
+
+
+
### JSON Sprite Array
-
-
-
-
-
+
+
+
-
-
-
-
-
+
+
+
diff --git a/site/src/content/docs/reference/tooltip.mdx b/site/src/content/docs/reference/tooltip.mdx
index 82cb015a..d78f072e 100644
--- a/site/src/content/docs/reference/tooltip.mdx
+++ b/site/src/content/docs/reference/tooltip.mdx
@@ -14,21 +14,31 @@ import Demo from "@/components/docs/demos/Demo.astro";
import BasicUsageDemoReact from "@/components/docs/demos/tooltip/react/css/BasicUsage";
import basicUsageReactTsx from "@/components/docs/demos/tooltip/react/css/BasicUsage.tsx?raw";
import basicUsageReactCss from "@/components/docs/demos/tooltip/react/css/BasicUsage.css?raw";
+import BasicUsageDemoReactTailwind from "@/components/docs/demos/tooltip/react/tailwind/BasicUsage";
+import basicUsageReactTailwindTsx from "@/components/docs/demos/tooltip/react/tailwind/BasicUsage.tsx?raw";
import GroupingDemoReact from "@/components/docs/demos/tooltip/react/css/Grouping";
import groupingReactTsx from "@/components/docs/demos/tooltip/react/css/Grouping.tsx?raw";
import groupingReactCss from "@/components/docs/demos/tooltip/react/css/Grouping.css?raw";
+import GroupingDemoReactTailwind from "@/components/docs/demos/tooltip/react/tailwind/Grouping";
+import groupingReactTailwindTsx from "@/components/docs/demos/tooltip/react/tailwind/Grouping.tsx?raw";
{/* HTML demos */}
import BasicUsageDemoHtml from "@/components/docs/demos/tooltip/html/css/BasicUsage.astro";
import basicUsageHtml from "@/components/docs/demos/tooltip/html/css/BasicUsage.html?raw";
import basicUsageHtmlCss from "@/components/docs/demos/tooltip/html/css/BasicUsage.css?raw";
import basicUsageHtmlTs from "@/components/docs/demos/tooltip/html/css/BasicUsage.ts?raw";
+import BasicUsageDemoHtmlTailwind from "@/components/docs/demos/tooltip/html/tailwind/BasicUsage.astro";
+import basicUsageTailwindHtml from "@/components/docs/demos/tooltip/html/tailwind/BasicUsage.html?raw";
+import basicUsageTailwindHtmlTs from "@/components/docs/demos/tooltip/html/tailwind/BasicUsage.ts?raw";
import GroupingDemoHtml from "@/components/docs/demos/tooltip/html/css/Grouping.astro";
import groupingHtml from "@/components/docs/demos/tooltip/html/css/Grouping.html?raw";
import groupingHtmlCss from "@/components/docs/demos/tooltip/html/css/Grouping.css?raw";
import groupingHtmlTs from "@/components/docs/demos/tooltip/html/css/Grouping.ts?raw";
+import GroupingDemoHtmlTailwind from "@/components/docs/demos/tooltip/html/tailwind/Grouping.astro";
+import groupingTailwindHtml from "@/components/docs/demos/tooltip/html/tailwind/Grouping.html?raw";
+import groupingTailwindHtmlTs from "@/components/docs/demos/tooltip/html/tailwind/Grouping.ts?raw";
## Anatomy
@@ -163,6 +173,15 @@ The trigger receives `aria-describedby` pointing to the popup when open. The pop
+
+
+
+
+
@@ -177,6 +196,16 @@ The trigger receives `aria-describedby` pointing to the popup when open. The pop
+
+
+
+
+
### Grouping
@@ -196,6 +225,15 @@ The trigger receives `aria-describedby` pointing to the popup when open. The pop
+
+
+
+
+
@@ -214,6 +252,16 @@ The trigger receives `aria-describedby` pointing to the popup when open. The pop
+
+
+
+
+