Skip to content

Commit

Permalink
docs(syntax): fix the tweet component usage (#112)
Browse files Browse the repository at this point in the history
With the v-bind `:id` prop, the Tweet component doesn't always work.

e.g.
`@antfu7`'s pinned tweet doesn't render with the prepending colon (:).
`<Tweet :id="1389800180002672641" />` doesn't work
but `<Tweet id="1389800180002672641" />` works.

Also, the closing `div` doesn't have slash, causing a server error.
  • Loading branch information
shoichiaizawa committed May 14, 2021
1 parent 6daa445 commit dcefd63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ console.log('Hello, World!')
You can directly use Windi CSS and Vue components to style and enrich your slides.

<div class="p-3">
<Tweet :id="20" />
<div>
<Tweet id="20" />
</div>
~~~

## Front Matter & Layouts
Expand Down

0 comments on commit dcefd63

Please sign in to comment.