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 @@ + + + + + Exit Fullscreen + Fullscreen + + + 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 ( + + + + {state.fullscreen ? 'Exit Fullscreen' : 'Fullscreen'}} + /> + + + ); +} 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 @@ + + + + + Unmute + Mute + + + 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 @@ + + + + + Off + Low + Medium + High + + + 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 ( + + + + {state.muted ? 'Unmute' : 'Mute'}} + /> + + + ); +} 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 ( + + + + ( + + {state.volumeLevel === 'off' + ? 'Off' + : state.volumeLevel === 'low' + ? 'Low' + : state.volumeLevel === 'medium' + ? 'Medium' + : 'High'} + + )} + /> + + + ); +} 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 @@ + + + + + Exit PiP + Enter PiP + + + 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 ( + + + + {state.pip ? 'Exit PiP' : 'Enter PiP'}} + /> + + + ); +} 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 @@ + + + + + Play + Pause + Replay + + + 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 ( + + + + ( + {state.ended ? 'Replay' : state.paused ? 'Play' : 'Pause'} + )} + /> + + + ); +} 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 @@ + + + + + + ⏪ 5s + + + 10s ⏩ + + + + 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 ( + + + + + ( + + {state.direction === 'backward' ? '\u23EA' : '\u23E9'} {5}s + + )} + /> + ( + + {10}s {state.direction === 'forward' ? '\u23E9' : '\u23EA'} + + )} + /> + + + + ); +} 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 ( + + + + + + of + + + + + ); +} 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 @@ + + + + + Unmute + Mute + + + + + + + + + + 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 ( + + + + {state.muted ? 'Unmute' : 'Mute'}} + /> + + + + + + + + + + ); +} 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 `` with an automatic `aria-label`: "Enter fullscreen" or "Exit + + + + + @@ -114,6 +126,14 @@ Renders a `` with an automatic `aria-label`: "Enter fullscreen" or "Exit + + + + + diff --git a/site/src/content/docs/reference/mute-button.mdx b/site/src/content/docs/reference/mute-button.mdx index 31fa5573..26aef2d7 100644 --- a/site/src/content/docs/reference/mute-button.mdx +++ b/site/src/content/docs/reference/mute-button.mdx @@ -14,23 +14,33 @@ import Demo from "@/components/docs/demos/Demo.astro"; import BasicUsageDemoReact from "@/components/docs/demos/mute-button/react/css/BasicUsage"; import basicUsageReactTsx from "@/components/docs/demos/mute-button/react/css/BasicUsage.tsx?raw"; import basicUsageReactCss from "@/components/docs/demos/mute-button/react/css/BasicUsage.css?raw"; +import BasicUsageDemoReactTailwind from "@/components/docs/demos/mute-button/react/tailwind/BasicUsage"; +import basicUsageReactTailwindTsx from "@/components/docs/demos/mute-button/react/tailwind/BasicUsage.tsx?raw"; {/* HTML demos */} import BasicUsageDemoHtml from "@/components/docs/demos/mute-button/html/css/BasicUsage.astro"; import basicUsageHtml from "@/components/docs/demos/mute-button/html/css/BasicUsage.html?raw"; import basicUsageHtmlCss from "@/components/docs/demos/mute-button/html/css/BasicUsage.css?raw"; import basicUsageHtmlTs from "@/components/docs/demos/mute-button/html/css/BasicUsage.ts?raw"; +import BasicUsageDemoHtmlTailwind from "@/components/docs/demos/mute-button/html/tailwind/BasicUsage.astro"; +import basicUsageTailwindHtml from "@/components/docs/demos/mute-button/html/tailwind/BasicUsage.html?raw"; +import basicUsageTailwindHtmlTs from "@/components/docs/demos/mute-button/html/tailwind/BasicUsage.ts?raw"; {/* React demos — Volume Levels */} import VolumeLevelsDemoReact from "@/components/docs/demos/mute-button/react/css/VolumeLevels"; import volumeLevelsReactTsx from "@/components/docs/demos/mute-button/react/css/VolumeLevels.tsx?raw"; import volumeLevelsReactCss from "@/components/docs/demos/mute-button/react/css/VolumeLevels.css?raw"; +import VolumeLevelsDemoReactTailwind from "@/components/docs/demos/mute-button/react/tailwind/VolumeLevels"; +import volumeLevelsReactTailwindTsx from "@/components/docs/demos/mute-button/react/tailwind/VolumeLevels.tsx?raw"; {/* HTML demos — Volume Levels */} import VolumeLevelsDemoHtml from "@/components/docs/demos/mute-button/html/css/VolumeLevels.astro"; import volumeLevelsHtml from "@/components/docs/demos/mute-button/html/css/VolumeLevels.html?raw"; import volumeLevelsHtmlCss from "@/components/docs/demos/mute-button/html/css/VolumeLevels.css?raw"; import volumeLevelsHtmlTs from "@/components/docs/demos/mute-button/html/css/VolumeLevels.ts?raw"; +import VolumeLevelsDemoHtmlTailwind from "@/components/docs/demos/mute-button/html/tailwind/VolumeLevels.astro"; +import volumeLevelsTailwindHtml from "@/components/docs/demos/mute-button/html/tailwind/VolumeLevels.html?raw"; +import volumeLevelsTailwindHtmlTs from "@/components/docs/demos/mute-button/html/tailwind/VolumeLevels.ts?raw"; ## Anatomy @@ -107,6 +117,13 @@ Renders a `` with an automatic `aria-label`: "Unmute" when muted, "Mute" + + + + + @@ -119,6 +136,14 @@ Renders a `` with an automatic `aria-label`: "Unmute" when muted, "Mute" + + + + + ### Volume Levels @@ -132,6 +157,13 @@ Renders a `` with an automatic `aria-label`: "Unmute" when muted, "Mute" + + + + + @@ -144,6 +176,14 @@ Renders a `` with an automatic `aria-label`: "Unmute" when muted, "Mute" + + + + + diff --git a/site/src/content/docs/reference/pip-button.mdx b/site/src/content/docs/reference/pip-button.mdx index 5e484999..1ae16916 100644 --- a/site/src/content/docs/reference/pip-button.mdx +++ b/site/src/content/docs/reference/pip-button.mdx @@ -14,12 +14,17 @@ import Demo from "@/components/docs/demos/Demo.astro"; import BasicUsageDemoReact from "@/components/docs/demos/pip-button/react/css/BasicUsage"; import basicUsageReactTsx from "@/components/docs/demos/pip-button/react/css/BasicUsage.tsx?raw"; import basicUsageReactCss from "@/components/docs/demos/pip-button/react/css/BasicUsage.css?raw"; +import BasicUsageDemoReactTailwind from "@/components/docs/demos/pip-button/react/tailwind/BasicUsage"; +import basicUsageReactTailwindTsx from "@/components/docs/demos/pip-button/react/tailwind/BasicUsage.tsx?raw"; {/* HTML demos */} import BasicUsageDemoHtml from "@/components/docs/demos/pip-button/html/css/BasicUsage.astro"; import basicUsageHtml from "@/components/docs/demos/pip-button/html/css/BasicUsage.html?raw"; import basicUsageHtmlCss from "@/components/docs/demos/pip-button/html/css/BasicUsage.css?raw"; import basicUsageHtmlTs from "@/components/docs/demos/pip-button/html/css/BasicUsage.ts?raw"; +import BasicUsageDemoHtmlTailwind from "@/components/docs/demos/pip-button/html/tailwind/BasicUsage.astro"; +import basicUsageTailwindHtml from "@/components/docs/demos/pip-button/html/tailwind/BasicUsage.html?raw"; +import basicUsageTailwindHtmlTs from "@/components/docs/demos/pip-button/html/tailwind/BasicUsage.ts?raw"; ## Anatomy @@ -98,6 +103,13 @@ Renders a `` with an automatic `aria-label`: "Enter PiP" or "Exit PiP". + + + + + @@ -110,6 +122,14 @@ Renders a `` with an automatic `aria-label`: "Enter PiP" or "Exit PiP". + + + + + diff --git a/site/src/content/docs/reference/play-button.mdx b/site/src/content/docs/reference/play-button.mdx index 68919946..956eedcd 100644 --- a/site/src/content/docs/reference/play-button.mdx +++ b/site/src/content/docs/reference/play-button.mdx @@ -14,12 +14,17 @@ import Demo from "@/components/docs/demos/Demo.astro"; import BasicUsageDemoReact from "@/components/docs/demos/play-button/react/css/BasicUsage"; import basicUsageReactTsx from "@/components/docs/demos/play-button/react/css/BasicUsage.tsx?raw"; import basicUsageReactCss from "@/components/docs/demos/play-button/react/css/BasicUsage.css?raw"; +import BasicUsageDemoReactTailwind from "@/components/docs/demos/play-button/react/tailwind/BasicUsage"; +import basicUsageReactTailwindTsx from "@/components/docs/demos/play-button/react/tailwind/BasicUsage.tsx?raw"; {/* HTML demos */} import BasicUsageDemoHtml from "@/components/docs/demos/play-button/html/css/BasicUsage.astro"; import basicUsageHtml from "@/components/docs/demos/play-button/html/css/BasicUsage.html?raw"; import basicUsageHtmlCss from "@/components/docs/demos/play-button/html/css/BasicUsage.css?raw"; import basicUsageHtmlTs from "@/components/docs/demos/play-button/html/css/BasicUsage.ts?raw"; +import BasicUsageDemoHtmlTailwind from "@/components/docs/demos/play-button/html/tailwind/BasicUsage.astro"; +import basicUsageTailwindHtml from "@/components/docs/demos/play-button/html/tailwind/BasicUsage.html?raw"; +import basicUsageTailwindHtmlTs from "@/components/docs/demos/play-button/html/tailwind/BasicUsage.ts?raw"; ## Anatomy @@ -104,6 +109,13 @@ Renders a `` element with an automatic `aria-label` that updates based o + + + + + @@ -116,6 +128,14 @@ Renders a `` element with an automatic `aria-label` that updates based o + + + + + diff --git a/site/src/content/docs/reference/seek-button.mdx b/site/src/content/docs/reference/seek-button.mdx index 60b9fa63..20f6fd78 100644 --- a/site/src/content/docs/reference/seek-button.mdx +++ b/site/src/content/docs/reference/seek-button.mdx @@ -14,12 +14,17 @@ import Demo from "@/components/docs/demos/Demo.astro"; import BasicUsageDemoReact from "@/components/docs/demos/seek-button/react/css/BasicUsage"; import basicUsageReactTsx from "@/components/docs/demos/seek-button/react/css/BasicUsage.tsx?raw"; import basicUsageReactCss from "@/components/docs/demos/seek-button/react/css/BasicUsage.css?raw"; +import BasicUsageDemoReactTailwind from "@/components/docs/demos/seek-button/react/tailwind/BasicUsage"; +import basicUsageReactTailwindTsx from "@/components/docs/demos/seek-button/react/tailwind/BasicUsage.tsx?raw"; {/* HTML demos */} import BasicUsageDemoHtml from "@/components/docs/demos/seek-button/html/css/BasicUsage.astro"; import basicUsageHtml from "@/components/docs/demos/seek-button/html/css/BasicUsage.html?raw"; import basicUsageHtmlCss from "@/components/docs/demos/seek-button/html/css/BasicUsage.css?raw"; import basicUsageHtmlTs from "@/components/docs/demos/seek-button/html/css/BasicUsage.ts?raw"; +import BasicUsageDemoHtmlTailwind from "@/components/docs/demos/seek-button/html/tailwind/BasicUsage.astro"; +import basicUsageTailwindHtml from "@/components/docs/demos/seek-button/html/tailwind/BasicUsage.html?raw"; +import basicUsageTailwindHtmlTs from "@/components/docs/demos/seek-button/html/tailwind/BasicUsage.ts?raw"; ## Anatomy @@ -58,6 +63,13 @@ Renders a `` with an automatic `aria-label` describing the action, e.g. + + + + + @@ -72,6 +84,14 @@ Renders a `` with an automatic `aria-label` describing the action, e.g. + + + + + diff --git a/site/src/content/docs/reference/time-slider.mdx b/site/src/content/docs/reference/time-slider.mdx index fbecf350..f08426b2 100644 --- a/site/src/content/docs/reference/time-slider.mdx +++ b/site/src/content/docs/reference/time-slider.mdx @@ -14,12 +14,17 @@ import Demo from "@/components/docs/demos/Demo.astro"; import WithPartsDemoReact from "@/components/docs/demos/time-slider/react/css/WithParts"; import withPartsReactTsx from "@/components/docs/demos/time-slider/react/css/WithParts.tsx?raw"; import withPartsReactCss from "@/components/docs/demos/time-slider/react/css/WithParts.css?raw"; +import WithPartsDemoReactTailwind from "@/components/docs/demos/time-slider/react/tailwind/WithParts"; +import withPartsReactTailwindTsx from "@/components/docs/demos/time-slider/react/tailwind/WithParts.tsx?raw"; {/* HTML demos */} import WithPartsDemoHtml from "@/components/docs/demos/time-slider/html/css/WithParts.astro"; import withPartsHtml from "@/components/docs/demos/time-slider/html/css/WithParts.html?raw"; import withPartsHtmlCss from "@/components/docs/demos/time-slider/html/css/WithParts.css?raw"; import withPartsHtmlTs from "@/components/docs/demos/time-slider/html/css/WithParts.ts?raw"; +import WithPartsDemoHtmlTailwind from "@/components/docs/demos/time-slider/html/tailwind/WithParts.astro"; +import withPartsTailwindHtml from "@/components/docs/demos/time-slider/html/tailwind/WithParts.html?raw"; +import withPartsTailwindHtmlTs from "@/components/docs/demos/time-slider/html/tailwind/WithParts.ts?raw"; ## Anatomy @@ -105,6 +110,15 @@ Nest sub-components for full control over the slider's DOM structure. This examp + + + + + @@ -119,6 +133,16 @@ Nest sub-components for full control over the slider's DOM structure. This examp + + + + + diff --git a/site/src/content/docs/reference/time.mdx b/site/src/content/docs/reference/time.mdx index d58fcaed..a583f8c4 100644 --- a/site/src/content/docs/reference/time.mdx +++ b/site/src/content/docs/reference/time.mdx @@ -14,44 +14,69 @@ import Demo from "@/components/docs/demos/Demo.astro"; import CurrentTimeDemoReact from "@/components/docs/demos/time/react/css/CurrentTime"; import currentTimeReactTsx from "@/components/docs/demos/time/react/css/CurrentTime.tsx?raw"; import currentTimeReactCss from "@/components/docs/demos/time/react/css/CurrentTime.css?raw"; +import CurrentTimeDemoReactTailwind from "@/components/docs/demos/time/react/tailwind/CurrentTime"; +import currentTimeReactTailwindTsx from "@/components/docs/demos/time/react/tailwind/CurrentTime.tsx?raw"; import CurrentDurationDemoReact from "@/components/docs/demos/time/react/css/CurrentDuration"; import currentDurationReactTsx from "@/components/docs/demos/time/react/css/CurrentDuration.tsx?raw"; import currentDurationReactCss from "@/components/docs/demos/time/react/css/CurrentDuration.css?raw"; +import CurrentDurationDemoReactTailwind from "@/components/docs/demos/time/react/tailwind/CurrentDuration"; +import currentDurationReactTailwindTsx from "@/components/docs/demos/time/react/tailwind/CurrentDuration.tsx?raw"; import RemainingDemoReact from "@/components/docs/demos/time/react/css/Remaining"; import remainingReactTsx from "@/components/docs/demos/time/react/css/Remaining.tsx?raw"; import remainingReactCss from "@/components/docs/demos/time/react/css/Remaining.css?raw"; +import RemainingDemoReactTailwind from "@/components/docs/demos/time/react/tailwind/Remaining"; +import remainingReactTailwindTsx from "@/components/docs/demos/time/react/tailwind/Remaining.tsx?raw"; import CustomSeparatorDemoReact from "@/components/docs/demos/time/react/css/CustomSeparator"; import customSeparatorReactTsx from "@/components/docs/demos/time/react/css/CustomSeparator.tsx?raw"; import customSeparatorReactCss from "@/components/docs/demos/time/react/css/CustomSeparator.css?raw"; +import CustomSeparatorDemoReactTailwind from "@/components/docs/demos/time/react/tailwind/CustomSeparator"; +import customSeparatorReactTailwindTsx from "@/components/docs/demos/time/react/tailwind/CustomSeparator.tsx?raw"; import CustomNegativeSignDemoReact from "@/components/docs/demos/time/react/css/CustomNegativeSign"; import customNegativeSignReactTsx from "@/components/docs/demos/time/react/css/CustomNegativeSign.tsx?raw"; import customNegativeSignReactCss from "@/components/docs/demos/time/react/css/CustomNegativeSign.css?raw"; +import CustomNegativeSignDemoReactTailwind from "@/components/docs/demos/time/react/tailwind/CustomNegativeSign"; +import customNegativeSignReactTailwindTsx from "@/components/docs/demos/time/react/tailwind/CustomNegativeSign.tsx?raw"; {/* HTML demos */} import CurrentTimeDemoHtml from "@/components/docs/demos/time/html/css/CurrentTime.astro"; import currentTimeHtml from "@/components/docs/demos/time/html/css/CurrentTime.html?raw"; import currentTimeHtmlCss from "@/components/docs/demos/time/html/css/CurrentTime.css?raw"; import currentTimeHtmlTs from "@/components/docs/demos/time/html/css/CurrentTime.ts?raw"; +import CurrentTimeDemoHtmlTailwind from "@/components/docs/demos/time/html/tailwind/CurrentTime.astro"; +import currentTimeTailwindHtml from "@/components/docs/demos/time/html/tailwind/CurrentTime.html?raw"; +import currentTimeTailwindHtmlTs from "@/components/docs/demos/time/html/tailwind/CurrentTime.ts?raw"; import CurrentDurationDemoHtml from "@/components/docs/demos/time/html/css/CurrentDuration.astro"; import currentDurationHtml from "@/components/docs/demos/time/html/css/CurrentDuration.html?raw"; import currentDurationHtmlCss from "@/components/docs/demos/time/html/css/CurrentDuration.css?raw"; import currentDurationHtmlTs from "@/components/docs/demos/time/html/css/CurrentDuration.ts?raw"; +import CurrentDurationDemoHtmlTailwind from "@/components/docs/demos/time/html/tailwind/CurrentDuration.astro"; +import currentDurationTailwindHtml from "@/components/docs/demos/time/html/tailwind/CurrentDuration.html?raw"; +import currentDurationTailwindHtmlTs from "@/components/docs/demos/time/html/tailwind/CurrentDuration.ts?raw"; import RemainingDemoHtml from "@/components/docs/demos/time/html/css/Remaining.astro"; import remainingHtml from "@/components/docs/demos/time/html/css/Remaining.html?raw"; import remainingHtmlCss from "@/components/docs/demos/time/html/css/Remaining.css?raw"; import remainingHtmlTs from "@/components/docs/demos/time/html/css/Remaining.ts?raw"; +import RemainingDemoHtmlTailwind from "@/components/docs/demos/time/html/tailwind/Remaining.astro"; +import remainingTailwindHtml from "@/components/docs/demos/time/html/tailwind/Remaining.html?raw"; +import remainingTailwindHtmlTs from "@/components/docs/demos/time/html/tailwind/Remaining.ts?raw"; import CustomSeparatorDemoHtml from "@/components/docs/demos/time/html/css/CustomSeparator.astro"; import customSeparatorHtml from "@/components/docs/demos/time/html/css/CustomSeparator.html?raw"; import customSeparatorHtmlCss from "@/components/docs/demos/time/html/css/CustomSeparator.css?raw"; import customSeparatorHtmlTs from "@/components/docs/demos/time/html/css/CustomSeparator.ts?raw"; +import CustomSeparatorDemoHtmlTailwind from "@/components/docs/demos/time/html/tailwind/CustomSeparator.astro"; +import customSeparatorTailwindHtml from "@/components/docs/demos/time/html/tailwind/CustomSeparator.html?raw"; +import customSeparatorTailwindHtmlTs from "@/components/docs/demos/time/html/tailwind/CustomSeparator.ts?raw"; import CustomNegativeSignDemoHtml from "@/components/docs/demos/time/html/css/CustomNegativeSign.astro"; import customNegativeSignHtml from "@/components/docs/demos/time/html/css/CustomNegativeSign.html?raw"; import customNegativeSignHtmlCss from "@/components/docs/demos/time/html/css/CustomNegativeSign.css?raw"; import customNegativeSignHtmlTs from "@/components/docs/demos/time/html/css/CustomNegativeSign.ts?raw"; +import CustomNegativeSignDemoHtmlTailwind from "@/components/docs/demos/time/html/tailwind/CustomNegativeSign.astro"; +import customNegativeSignTailwindHtml from "@/components/docs/demos/time/html/tailwind/CustomNegativeSign.html?raw"; +import customNegativeSignTailwindHtmlTs from "@/components/docs/demos/time/html/tailwind/CustomNegativeSign.ts?raw"; ## Anatomy @@ -124,6 +149,13 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + @@ -136,6 +168,14 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + ### Current / Duration @@ -149,6 +189,13 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + @@ -161,6 +208,14 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + ### Remaining @@ -174,6 +229,13 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + @@ -186,6 +248,14 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + ### Custom Separator @@ -199,6 +269,13 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + @@ -211,6 +288,14 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + ### Custom Negative Sign @@ -224,6 +309,13 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + @@ -236,6 +328,14 @@ No `aria-live` region is used — time updates too frequently and might overwhel + + + + + diff --git a/site/src/content/docs/reference/volume-slider.mdx b/site/src/content/docs/reference/volume-slider.mdx index c151264d..022363a5 100644 --- a/site/src/content/docs/reference/volume-slider.mdx +++ b/site/src/content/docs/reference/volume-slider.mdx @@ -14,12 +14,17 @@ import Demo from "@/components/docs/demos/Demo.astro"; import WithPartsDemoReact from "@/components/docs/demos/volume-slider/react/css/WithParts"; import withPartsReactTsx from "@/components/docs/demos/volume-slider/react/css/WithParts.tsx?raw"; import withPartsReactCss from "@/components/docs/demos/volume-slider/react/css/WithParts.css?raw"; +import WithPartsDemoReactTailwind from "@/components/docs/demos/volume-slider/react/tailwind/WithParts"; +import withPartsReactTailwindTsx from "@/components/docs/demos/volume-slider/react/tailwind/WithParts.tsx?raw"; {/* HTML demos */} import WithPartsDemoHtml from "@/components/docs/demos/volume-slider/html/css/WithParts.astro"; import withPartsHtml from "@/components/docs/demos/volume-slider/html/css/WithParts.html?raw"; import withPartsHtmlCss from "@/components/docs/demos/volume-slider/html/css/WithParts.css?raw"; import withPartsHtmlTs from "@/components/docs/demos/volume-slider/html/css/WithParts.ts?raw"; +import WithPartsDemoHtmlTailwind from "@/components/docs/demos/volume-slider/html/tailwind/WithParts.astro"; +import withPartsTailwindHtml from "@/components/docs/demos/volume-slider/html/tailwind/WithParts.html?raw"; +import withPartsTailwindHtmlTs from "@/components/docs/demos/volume-slider/html/tailwind/WithParts.ts?raw"; ## Anatomy @@ -89,6 +94,15 @@ Nest sub-components for full control over the slider's DOM structure. This examp + + + + + @@ -103,6 +117,16 @@ Nest sub-components for full control over the slider's DOM structure. This examp + + + + +