Skip to content

Commit

Permalink
Update Components CONTRIBUTING.md indentation (#35866)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegohaz committed Oct 22, 2021
1 parent d51a0e0 commit 070deca
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/components/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ Each component that is exported from the `@wordpress/components` package should

## README example

```markdown
````markdown
# `ComponentName`

<!-- If component is experimental, add the following section: -->
Expand All @@ -327,17 +327,17 @@ Description of the component.

Code example using correct markdown syntax and formatted using project's formatting rules. See [ItemGroup](/packages/components/src/item-group/item-group/README.md#usage) for a real-world example.

```jsx
import { ExampleComponent } from '@wordpress/components';
```jsx
import { ExampleComponent } from '@wordpress/components';

function Example() {
return (
<ExampleComponent>
<p>Code is poetry</p>
</ExampleComponent>
);
}
```
function Example() {
return (
<ExampleComponent>
<p>Code is poetry</p>
</ExampleComponent>
);
}
```

## Props

Expand All @@ -359,7 +359,7 @@ Add this section when there are props that are drilled down into an internal com
## Context

See examples for this section for the [ItemGroup](/packages/components/src/item-group/item-group/README.md#context) and [`Card`](/packages/components/src/card/card/README.md#context) components.
```
````

## Folder structure

Expand Down

0 comments on commit 070deca

Please sign in to comment.