Skip to content

Commit

Permalink
📝 (components) update inline components syntax docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Jun 10, 2021
1 parent d8b2ba4 commit e56d364
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/content/2.writing/2.syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ Inline components are used to put components in the middle of any Markdown block
:icon-nuxt
```

- They do not support **Slots**, but only **Props**.
- This syntax supports **Props**.

::code-group

Expand All @@ -293,3 +293,16 @@ Inline components are used to put components in the middle of any Markdown block
Hello Nuxt Icon :icon-nuxt{class="inline w-6"} 👋
::
::

- This syntax supports **Default Slot**.

::code-group

```md [Code]
:button-link[A button link]{bold}
```

::code-block{label="Preview" preview}
:button-link[A button link]{bold}
::
::

0 comments on commit e56d364

Please sign in to comment.