Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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