Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedee authored May 11, 2021
2 parents 68ba17f + bf5a328 commit e972f3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/ja/guide/v10/web-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ function TextSection({ heading, content }) {
);
}

registerElement(Foo, 'text-section', [], { shadow: true });
register(TextSection, 'text-section', [], { shadow: true });
```

使い方:

```html
<text-section>
<slot name="heading">Nice heading</slot>
<slot name="content">Great content</slot>
<span slot="heading">Nice heading</span>
<span slot="content">Great content</span>
</text-section>
```

0 comments on commit e972f3c

Please sign in to comment.