Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
proseWrap: always
printWidth: 80
singleQuote: false
semi: true
trailingComma: all
27 changes: 26 additions & 1 deletion ipa/dev/component-fixtures.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description:
production builds."
---

import { Guidelines, Guideline } from "@site/src/components/ipa";
import { Guidelines, Guideline, Example } from "@site/src/components/ipa";

# Component fixtures

Expand Down Expand Up @@ -61,3 +61,28 @@ independently.
<p>Second child — separated from the first by a top border.</p>
<p>Third child — separator styling applies between every adjacent pair.</p>
</Guidelines>

## `<Example>`

`<Example.Correct>` and `<Example.Incorrect>` render collapsible code examples
with a visual correct/incorrect indicator.

### Correct example

<Example.Correct>

```yaml
name: list-resources
```

</Example.Correct>

### Incorrect example

<Example.Incorrect title="Missing name field">

```yaml
{}
```

</Example.Incorrect>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@docusaurus/theme-classic": "^3.8.1",
"@docusaurus/theme-search-algolia": "^3.8.1",
"@easyops-cn/docusaurus-search-local": "^0.51.1",
"clsx": "^2.1.1",
"zod": "^4.3.6"
}
}
Loading