mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): add aside component
This commit is contained in:
@@ -6,6 +6,11 @@ description: Get started with Video.js v10 by choosing your framework, styles, s
|
||||
import FrameworkCase from '@/components/docs/FrameworkCase.astro';
|
||||
import ServerCode from '@/components/Code/ServerCode.astro';
|
||||
import DocsLink from '@/components/docs/DocsLink.astro';
|
||||
import Aside from '@/components/Aside.astro';
|
||||
|
||||
<Aside type="caution" title="Technical Preview">
|
||||
Video.js v10 is currently in technical preview. The API and docs are actively evolving. See the <DocsLink slug="concepts/v10-roadmap">roadmap</DocsLink> for more details on what's coming.
|
||||
</Aside>
|
||||
|
||||
Welcome to Video.js v10! This guide will help you get up and running. In it, you'll make three key choices:
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import Minimal from '@/components/frames/Minimal.astro';
|
||||
import ServerCode from '@/components/Code/ServerCode.astro';
|
||||
import { TabsRoot, TabsPanel } from '@/components/Tabs.tsx';
|
||||
import DocsLink from '@/components/docs/DocsLink.astro';
|
||||
import Aside from '@/components/Aside.astro';
|
||||
|
||||
## What kind of guide are you writing?
|
||||
I haven't written this section yet, but when I do, it'll rehash [Diátaxis](https://diataxis.fr/).
|
||||
@@ -248,6 +249,35 @@ Press <kbd>CTRL</kbd> + <kbd>ALT</kbd> + <kbd>Delete</kbd> to end the session.
|
||||
|
||||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||
|
||||
## Asides / Callouts / Admonitions
|
||||
|
||||
Use the `<Aside>` component to highlight important information. It supports four types: `note`, `tip`, `caution`, and `danger`.
|
||||
|
||||
```mdx
|
||||
{/* or type="tip" or "caution" or "danger" */}
|
||||
<Aside type="note" title="Custom Title">
|
||||
Your content. You can use **markdown** in here, too.
|
||||
</Aside>
|
||||
```
|
||||
|
||||
Which will give you...
|
||||
|
||||
<Aside type="note" title="Custom Title">
|
||||
Your content. You can use **markdown** in here, too.
|
||||
</Aside>
|
||||
|
||||
<Aside type="tip">
|
||||
Your content. You can use **markdown** in here, too.
|
||||
</Aside>
|
||||
|
||||
<Aside type="caution">
|
||||
Your content. You can use **markdown** in here, too.
|
||||
</Aside>
|
||||
|
||||
<Aside type="danger">
|
||||
Your content. You can use **markdown** in here, too.
|
||||
</Aside>
|
||||
|
||||
## Code and Code Frames
|
||||
|
||||
### Default frame
|
||||
|
||||
Reference in New Issue
Block a user