Skip to content

Commit

Permalink
Use codetabs to label ESNext code as such (#13781)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz authored and gziolo committed Feb 10, 2019
1 parent a59aaf2 commit 0a33b84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Note that this component may sometimes be confused with the Button block, which

Renders a button with default style.

{% codetabs %}
{% ESNext %}
```jsx
import { Button } from "@wordpress/components";

Expand All @@ -19,6 +21,7 @@ const MyButton = () => (
</Button>
);
```
{% end %}

## Props

Expand Down

0 comments on commit 0a33b84

Please sign in to comment.