mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
docs: move videojs CSS imports to top in React snippets (#818)
This commit is contained in:
@@ -74,9 +74,10 @@ Here's a complete example showing all three tiers:
|
||||
|
||||
<FrameworkCase frameworks={["react"]}>
|
||||
```tsx
|
||||
import { VideoProvider, FrostedSkin, Video } from '@videojs/react-preview';
|
||||
import '@videojs/react-preview/skins/frosted.css';
|
||||
|
||||
import { VideoProvider, FrostedSkin, Video } from '@videojs/react-preview';
|
||||
|
||||
function Player() {
|
||||
return (
|
||||
// Tier 1: State Management
|
||||
|
||||
@@ -32,9 +32,10 @@ A modern, glassy design with backdrop blur effects and polished interactions.
|
||||
|
||||
<FrameworkCase frameworks={["react"]}>
|
||||
```tsx
|
||||
import '@videojs/react/video/skin.css';
|
||||
|
||||
import { createPlayer, Poster } from '@videojs/react';
|
||||
import { VideoSkin, Video, videoFeatures } from '@videojs/react/video';
|
||||
import '@videojs/react/video/skin.css';
|
||||
|
||||
const Player = createPlayer({ features: videoFeatures });
|
||||
|
||||
@@ -70,9 +71,10 @@ A clean, straightforward design that focuses on simplicity and clarity.
|
||||
|
||||
<FrameworkCase frameworks={["react"]}>
|
||||
```tsx
|
||||
import '@videojs/react/video/minimal-skin.css';
|
||||
|
||||
import { createPlayer, Poster } from '@videojs/react';
|
||||
import { MinimalVideoSkin, Video, videoFeatures } from '@videojs/react/video';
|
||||
import '@videojs/react/video/minimal-skin.css';
|
||||
|
||||
const Player = createPlayer({ features: videoFeatures });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user