diff --git a/site/src/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.astro b/site/src/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.astro new file mode 100644 index 00000000..c515bacd --- /dev/null +++ b/site/src/components/docs/demos/fullscreen-button/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/fullscreen-button/html/tailwind/BasicUsage.html b/site/src/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.html new file mode 100644 index 00000000..e21dc625 --- /dev/null +++ b/site/src/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.html @@ -0,0 +1,18 @@ + + + + + + + + + diff --git a/site/src/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.ts b/site/src/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.ts new file mode 100644 index 00000000..8bd9b818 --- /dev/null +++ b/site/src/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/fullscreen-button'; diff --git a/site/src/components/docs/demos/fullscreen-button/react/tailwind/BasicUsage.tsx b/site/src/components/docs/demos/fullscreen-button/react/tailwind/BasicUsage.tsx new file mode 100644 index 00000000..6b79ad2b --- /dev/null +++ b/site/src/components/docs/demos/fullscreen-button/react/tailwind/BasicUsage.tsx @@ -0,0 +1,25 @@ +import { createPlayer, FullscreenButton } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function BasicUsage() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/mute-button/html/tailwind/BasicUsage.astro b/site/src/components/docs/demos/mute-button/html/tailwind/BasicUsage.astro new file mode 100644 index 00000000..c515bacd --- /dev/null +++ b/site/src/components/docs/demos/mute-button/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/mute-button/html/tailwind/BasicUsage.html b/site/src/components/docs/demos/mute-button/html/tailwind/BasicUsage.html new file mode 100644 index 00000000..cf2705a6 --- /dev/null +++ b/site/src/components/docs/demos/mute-button/html/tailwind/BasicUsage.html @@ -0,0 +1,18 @@ + + + + + + + + + diff --git a/site/src/components/docs/demos/mute-button/html/tailwind/BasicUsage.ts b/site/src/components/docs/demos/mute-button/html/tailwind/BasicUsage.ts new file mode 100644 index 00000000..5c81c0a9 --- /dev/null +++ b/site/src/components/docs/demos/mute-button/html/tailwind/BasicUsage.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/mute-button'; diff --git a/site/src/components/docs/demos/mute-button/html/tailwind/VolumeLevels.astro b/site/src/components/docs/demos/mute-button/html/tailwind/VolumeLevels.astro new file mode 100644 index 00000000..9672930c --- /dev/null +++ b/site/src/components/docs/demos/mute-button/html/tailwind/VolumeLevels.astro @@ -0,0 +1,9 @@ +--- +import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro'; +import html from './VolumeLevels.html?raw'; +--- + + + diff --git a/site/src/components/docs/demos/mute-button/html/tailwind/VolumeLevels.html b/site/src/components/docs/demos/mute-button/html/tailwind/VolumeLevels.html new file mode 100644 index 00000000..d56d2dfc --- /dev/null +++ b/site/src/components/docs/demos/mute-button/html/tailwind/VolumeLevels.html @@ -0,0 +1,20 @@ + + + + + + + + + + + diff --git a/site/src/components/docs/demos/mute-button/html/tailwind/VolumeLevels.ts b/site/src/components/docs/demos/mute-button/html/tailwind/VolumeLevels.ts new file mode 100644 index 00000000..5c81c0a9 --- /dev/null +++ b/site/src/components/docs/demos/mute-button/html/tailwind/VolumeLevels.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/mute-button'; diff --git a/site/src/components/docs/demos/mute-button/react/tailwind/BasicUsage.tsx b/site/src/components/docs/demos/mute-button/react/tailwind/BasicUsage.tsx new file mode 100644 index 00000000..6f3682bd --- /dev/null +++ b/site/src/components/docs/demos/mute-button/react/tailwind/BasicUsage.tsx @@ -0,0 +1,25 @@ +import { createPlayer, MuteButton } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function BasicUsage() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/mute-button/react/tailwind/VolumeLevels.tsx b/site/src/components/docs/demos/mute-button/react/tailwind/VolumeLevels.tsx new file mode 100644 index 00000000..3bf5bc39 --- /dev/null +++ b/site/src/components/docs/demos/mute-button/react/tailwind/VolumeLevels.tsx @@ -0,0 +1,35 @@ +import { createPlayer, MuteButton } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function VolumeLevels() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/pip-button/html/tailwind/BasicUsage.astro b/site/src/components/docs/demos/pip-button/html/tailwind/BasicUsage.astro new file mode 100644 index 00000000..c515bacd --- /dev/null +++ b/site/src/components/docs/demos/pip-button/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/pip-button/html/tailwind/BasicUsage.html b/site/src/components/docs/demos/pip-button/html/tailwind/BasicUsage.html new file mode 100644 index 00000000..05228604 --- /dev/null +++ b/site/src/components/docs/demos/pip-button/html/tailwind/BasicUsage.html @@ -0,0 +1,18 @@ + + + + + + + + + diff --git a/site/src/components/docs/demos/pip-button/html/tailwind/BasicUsage.ts b/site/src/components/docs/demos/pip-button/html/tailwind/BasicUsage.ts new file mode 100644 index 00000000..978c2338 --- /dev/null +++ b/site/src/components/docs/demos/pip-button/html/tailwind/BasicUsage.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/pip-button'; diff --git a/site/src/components/docs/demos/pip-button/react/tailwind/BasicUsage.tsx b/site/src/components/docs/demos/pip-button/react/tailwind/BasicUsage.tsx new file mode 100644 index 00000000..e2d8e65a --- /dev/null +++ b/site/src/components/docs/demos/pip-button/react/tailwind/BasicUsage.tsx @@ -0,0 +1,25 @@ +import { createPlayer, PiPButton } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function BasicUsage() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/play-button/html/tailwind/BasicUsage.astro b/site/src/components/docs/demos/play-button/html/tailwind/BasicUsage.astro new file mode 100644 index 00000000..c515bacd --- /dev/null +++ b/site/src/components/docs/demos/play-button/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/play-button/html/tailwind/BasicUsage.html b/site/src/components/docs/demos/play-button/html/tailwind/BasicUsage.html new file mode 100644 index 00000000..2acedb7c --- /dev/null +++ b/site/src/components/docs/demos/play-button/html/tailwind/BasicUsage.html @@ -0,0 +1,18 @@ + + + + + + + + + + diff --git a/site/src/components/docs/demos/play-button/html/tailwind/BasicUsage.ts b/site/src/components/docs/demos/play-button/html/tailwind/BasicUsage.ts new file mode 100644 index 00000000..6c7c5cd8 --- /dev/null +++ b/site/src/components/docs/demos/play-button/html/tailwind/BasicUsage.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/play-button'; diff --git a/site/src/components/docs/demos/play-button/react/tailwind/BasicUsage.tsx b/site/src/components/docs/demos/play-button/react/tailwind/BasicUsage.tsx new file mode 100644 index 00000000..54042902 --- /dev/null +++ b/site/src/components/docs/demos/play-button/react/tailwind/BasicUsage.tsx @@ -0,0 +1,26 @@ +import { createPlayer, PlayButton } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function BasicUsage() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/seek-button/html/tailwind/BasicUsage.astro b/site/src/components/docs/demos/seek-button/html/tailwind/BasicUsage.astro new file mode 100644 index 00000000..c515bacd --- /dev/null +++ b/site/src/components/docs/demos/seek-button/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/seek-button/html/tailwind/BasicUsage.html b/site/src/components/docs/demos/seek-button/html/tailwind/BasicUsage.html new file mode 100644 index 00000000..23c93d1b --- /dev/null +++ b/site/src/components/docs/demos/seek-button/html/tailwind/BasicUsage.html @@ -0,0 +1,26 @@ + + + +
+ + + + + + +
+
+
diff --git a/site/src/components/docs/demos/seek-button/html/tailwind/BasicUsage.ts b/site/src/components/docs/demos/seek-button/html/tailwind/BasicUsage.ts new file mode 100644 index 00000000..3797af37 --- /dev/null +++ b/site/src/components/docs/demos/seek-button/html/tailwind/BasicUsage.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/seek-button'; diff --git a/site/src/components/docs/demos/seek-button/react/tailwind/BasicUsage.tsx b/site/src/components/docs/demos/seek-button/react/tailwind/BasicUsage.tsx new file mode 100644 index 00000000..14f0999b --- /dev/null +++ b/site/src/components/docs/demos/seek-button/react/tailwind/BasicUsage.tsx @@ -0,0 +1,41 @@ +import { createPlayer, SeekButton } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function BasicUsage() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/time-slider/html/tailwind/WithParts.astro b/site/src/components/docs/demos/time-slider/html/tailwind/WithParts.astro new file mode 100644 index 00000000..ce7b2ae9 --- /dev/null +++ b/site/src/components/docs/demos/time-slider/html/tailwind/WithParts.astro @@ -0,0 +1,9 @@ +--- +import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro'; +import html from './WithParts.html?raw'; +--- + + + diff --git a/site/src/components/docs/demos/time-slider/html/tailwind/WithParts.html b/site/src/components/docs/demos/time-slider/html/tailwind/WithParts.html new file mode 100644 index 00000000..3b46a6bb --- /dev/null +++ b/site/src/components/docs/demos/time-slider/html/tailwind/WithParts.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/site/src/components/docs/demos/time-slider/html/tailwind/WithParts.ts b/site/src/components/docs/demos/time-slider/html/tailwind/WithParts.ts new file mode 100644 index 00000000..d40811aa --- /dev/null +++ b/site/src/components/docs/demos/time-slider/html/tailwind/WithParts.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/time-slider'; diff --git a/site/src/components/docs/demos/time-slider/react/tailwind/WithParts.tsx b/site/src/components/docs/demos/time-slider/react/tailwind/WithParts.tsx new file mode 100644 index 00000000..a302efd2 --- /dev/null +++ b/site/src/components/docs/demos/time-slider/react/tailwind/WithParts.tsx @@ -0,0 +1,32 @@ +import { createPlayer, TimeSlider } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function WithParts() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/time/html/tailwind/CurrentDuration.astro b/site/src/components/docs/demos/time/html/tailwind/CurrentDuration.astro new file mode 100644 index 00000000..4656549d --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CurrentDuration.astro @@ -0,0 +1,9 @@ +--- +import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro'; +import html from './CurrentDuration.html?raw'; +--- + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/CurrentDuration.html b/site/src/components/docs/demos/time/html/tailwind/CurrentDuration.html new file mode 100644 index 00000000..f9a14473 --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CurrentDuration.html @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/CurrentDuration.ts b/site/src/components/docs/demos/time/html/tailwind/CurrentDuration.ts new file mode 100644 index 00000000..8555624a --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CurrentDuration.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/time'; diff --git a/site/src/components/docs/demos/time/html/tailwind/CurrentTime.astro b/site/src/components/docs/demos/time/html/tailwind/CurrentTime.astro new file mode 100644 index 00000000..5d7c0920 --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CurrentTime.astro @@ -0,0 +1,9 @@ +--- +import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro'; +import html from './CurrentTime.html?raw'; +--- + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/CurrentTime.html b/site/src/components/docs/demos/time/html/tailwind/CurrentTime.html new file mode 100644 index 00000000..c5ae8c5b --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CurrentTime.html @@ -0,0 +1,16 @@ + + + + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/CurrentTime.ts b/site/src/components/docs/demos/time/html/tailwind/CurrentTime.ts new file mode 100644 index 00000000..8555624a --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CurrentTime.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/time'; diff --git a/site/src/components/docs/demos/time/html/tailwind/CustomNegativeSign.astro b/site/src/components/docs/demos/time/html/tailwind/CustomNegativeSign.astro new file mode 100644 index 00000000..ba67befd --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CustomNegativeSign.astro @@ -0,0 +1,9 @@ +--- +import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro'; +import html from './CustomNegativeSign.html?raw'; +--- + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/CustomNegativeSign.html b/site/src/components/docs/demos/time/html/tailwind/CustomNegativeSign.html new file mode 100644 index 00000000..299dd553 --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CustomNegativeSign.html @@ -0,0 +1,17 @@ + + + + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/CustomNegativeSign.ts b/site/src/components/docs/demos/time/html/tailwind/CustomNegativeSign.ts new file mode 100644 index 00000000..8555624a --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CustomNegativeSign.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/time'; diff --git a/site/src/components/docs/demos/time/html/tailwind/CustomSeparator.astro b/site/src/components/docs/demos/time/html/tailwind/CustomSeparator.astro new file mode 100644 index 00000000..d22a0e0c --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CustomSeparator.astro @@ -0,0 +1,9 @@ +--- +import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro'; +import html from './CustomSeparator.html?raw'; +--- + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/CustomSeparator.html b/site/src/components/docs/demos/time/html/tailwind/CustomSeparator.html new file mode 100644 index 00000000..2e5d70e8 --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CustomSeparator.html @@ -0,0 +1,19 @@ + + + + + + of + + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/CustomSeparator.ts b/site/src/components/docs/demos/time/html/tailwind/CustomSeparator.ts new file mode 100644 index 00000000..8555624a --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/CustomSeparator.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/time'; diff --git a/site/src/components/docs/demos/time/html/tailwind/Remaining.astro b/site/src/components/docs/demos/time/html/tailwind/Remaining.astro new file mode 100644 index 00000000..5fcf20c6 --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/Remaining.astro @@ -0,0 +1,9 @@ +--- +import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro'; +import html from './Remaining.html?raw'; +--- + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/Remaining.html b/site/src/components/docs/demos/time/html/tailwind/Remaining.html new file mode 100644 index 00000000..4ab5db30 --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/Remaining.html @@ -0,0 +1,16 @@ + + + + + + diff --git a/site/src/components/docs/demos/time/html/tailwind/Remaining.ts b/site/src/components/docs/demos/time/html/tailwind/Remaining.ts new file mode 100644 index 00000000..8555624a --- /dev/null +++ b/site/src/components/docs/demos/time/html/tailwind/Remaining.ts @@ -0,0 +1,2 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/time'; diff --git a/site/src/components/docs/demos/time/react/tailwind/CurrentDuration.tsx b/site/src/components/docs/demos/time/react/tailwind/CurrentDuration.tsx new file mode 100644 index 00000000..d10f8938 --- /dev/null +++ b/site/src/components/docs/demos/time/react/tailwind/CurrentDuration.tsx @@ -0,0 +1,26 @@ +import { createPlayer, Time } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function CurrentDuration() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/time/react/tailwind/CurrentTime.tsx b/site/src/components/docs/demos/time/react/tailwind/CurrentTime.tsx new file mode 100644 index 00000000..7b264ab1 --- /dev/null +++ b/site/src/components/docs/demos/time/react/tailwind/CurrentTime.tsx @@ -0,0 +1,25 @@ +import { createPlayer, Time } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function CurrentTime() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/time/react/tailwind/CustomNegativeSign.tsx b/site/src/components/docs/demos/time/react/tailwind/CustomNegativeSign.tsx new file mode 100644 index 00000000..18f988ba --- /dev/null +++ b/site/src/components/docs/demos/time/react/tailwind/CustomNegativeSign.tsx @@ -0,0 +1,26 @@ +import { createPlayer, Time } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function CustomNegativeSign() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/time/react/tailwind/CustomSeparator.tsx b/site/src/components/docs/demos/time/react/tailwind/CustomSeparator.tsx new file mode 100644 index 00000000..daeebf91 --- /dev/null +++ b/site/src/components/docs/demos/time/react/tailwind/CustomSeparator.tsx @@ -0,0 +1,26 @@ +import { createPlayer, Time } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function CustomSeparator() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/time/react/tailwind/Remaining.tsx b/site/src/components/docs/demos/time/react/tailwind/Remaining.tsx new file mode 100644 index 00000000..962179f1 --- /dev/null +++ b/site/src/components/docs/demos/time/react/tailwind/Remaining.tsx @@ -0,0 +1,25 @@ +import { createPlayer, Time } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function Remaining() { + return ( + + + + + ); +} diff --git a/site/src/components/docs/demos/volume-slider/html/tailwind/WithParts.astro b/site/src/components/docs/demos/volume-slider/html/tailwind/WithParts.astro new file mode 100644 index 00000000..ce7b2ae9 --- /dev/null +++ b/site/src/components/docs/demos/volume-slider/html/tailwind/WithParts.astro @@ -0,0 +1,9 @@ +--- +import HtmlDemo from '@/components/docs/demos/HtmlDemo.astro'; +import html from './WithParts.html?raw'; +--- + + + diff --git a/site/src/components/docs/demos/volume-slider/html/tailwind/WithParts.html b/site/src/components/docs/demos/volume-slider/html/tailwind/WithParts.html new file mode 100644 index 00000000..c20a1860 --- /dev/null +++ b/site/src/components/docs/demos/volume-slider/html/tailwind/WithParts.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + diff --git a/site/src/components/docs/demos/volume-slider/html/tailwind/WithParts.ts b/site/src/components/docs/demos/volume-slider/html/tailwind/WithParts.ts new file mode 100644 index 00000000..bc487687 --- /dev/null +++ b/site/src/components/docs/demos/volume-slider/html/tailwind/WithParts.ts @@ -0,0 +1,3 @@ +import '@videojs/html/video/player'; +import '@videojs/html/ui/mute-button'; +import '@videojs/html/ui/volume-slider'; diff --git a/site/src/components/docs/demos/volume-slider/react/tailwind/WithParts.tsx b/site/src/components/docs/demos/volume-slider/react/tailwind/WithParts.tsx new file mode 100644 index 00000000..459d1d4a --- /dev/null +++ b/site/src/components/docs/demos/volume-slider/react/tailwind/WithParts.tsx @@ -0,0 +1,35 @@ +import { createPlayer, MuteButton, VolumeSlider } from '@videojs/react'; +import { Video, videoFeatures } from '@videojs/react/video'; + +const Player = createPlayer({ features: videoFeatures }); + +export default function WithParts() { + return ( + + + + + ); +} diff --git a/site/src/content/docs/reference/fullscreen-button.mdx b/site/src/content/docs/reference/fullscreen-button.mdx index 60b0f39c..beb6857d 100644 --- a/site/src/content/docs/reference/fullscreen-button.mdx +++ b/site/src/content/docs/reference/fullscreen-button.mdx @@ -14,12 +14,17 @@ import Demo from "@/components/docs/demos/Demo.astro"; import BasicUsageDemoReact from "@/components/docs/demos/fullscreen-button/react/css/BasicUsage"; import basicUsageReactTsx from "@/components/docs/demos/fullscreen-button/react/css/BasicUsage.tsx?raw"; import basicUsageReactCss from "@/components/docs/demos/fullscreen-button/react/css/BasicUsage.css?raw"; +import BasicUsageDemoReactTailwind from "@/components/docs/demos/fullscreen-button/react/tailwind/BasicUsage"; +import basicUsageReactTailwindTsx from "@/components/docs/demos/fullscreen-button/react/tailwind/BasicUsage.tsx?raw"; {/* HTML demos */} import BasicUsageDemoHtml from "@/components/docs/demos/fullscreen-button/html/css/BasicUsage.astro"; import basicUsageHtml from "@/components/docs/demos/fullscreen-button/html/css/BasicUsage.html?raw"; import basicUsageHtmlCss from "@/components/docs/demos/fullscreen-button/html/css/BasicUsage.css?raw"; import basicUsageHtmlTs from "@/components/docs/demos/fullscreen-button/html/css/BasicUsage.ts?raw"; +import BasicUsageDemoHtmlTailwind from "@/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.astro"; +import basicUsageTailwindHtml from "@/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.html?raw"; +import basicUsageTailwindHtmlTs from "@/components/docs/demos/fullscreen-button/html/tailwind/BasicUsage.ts?raw"; ## Anatomy @@ -100,6 +105,13 @@ Renders a `