Components
Components
This web come with some components that can be used to help you to write your tutorial.
<Solution>
<solution>
write your solution here
</solution>
Solution
<alert>
Props
type
- Type:
String
- Default:
'info'
- Values:
['info', 'success', 'warning', 'danger']
- Type:
Example
<alert>
Check out an info alert with a `codeblock` and a [link](/themes/docs)!
</alert>
Result
Check out an info alert with a codeblock
and a link!
<list>
Props
items
- Type:
Array
- Default:
[]
- Type:
type
v0.7.0+- Type:
String
- Default:
'primary'
- Values:
['primary', 'info', 'success', 'warning', 'danger']
- Type:
icon
v0.7.0+- Type:
String
- Can be used to override the default
type
icon, check out the icons available
- Type:
Example
---
items:
- Item1
- Item2
- Item3
---
<list :items="items"></list>
Result
Item1
Item2
Item3
<badge>
v0.5.0+
Example
<badge>v1.2+</badge>
Result
v1.2+<code-group>
This component uses slots
, refer to code-block
below.
<code-block>
Props
label
- Type:
String
required
- Type:
active
- Type:
Boolean
- Default:
false
- Type:
Example
# Backslashes are for demonstration
<code-group>
<code-block label="Yarn" active>
```bash
yarn add @nuxt/content-theme-docs
\```
</code-block>
<code-block label="NPM">
```bash
npm install @nuxt/content-theme-docs
\```
</code-block>
</code-group>
Result
yarn add @nuxt/content-theme-docs
npm install @nuxt/content-theme-docs
Footnotes [^1]
Example
Here is a simple footnote[^1]. With some additional text after it.
[^1]: My reference.
Result
Here is a simple footnote1. With some additional text after it.
- My reference.↩