Nice browser. Is it antique?
No, seriously - your browser is so old that some features of patternplate don't work as expected.
Don't worry - you can either continue with a restricted version or install an up-to-date browser.
We messed up.
Sorry, but your user experience might be affected.
- Try reloading the page
- Report the problem at github.com/patternplate/patternplate

Reference: Widgets

👩‍🎓 Level: Expert

patternplate provides components that can be used in Markdown. This allows you to bring your documenation to live with e.g. actual, real component demos.

Component List

<ComponentList /> displays an unordered list of patterns matching a search query. Placing the following code inside a widget code block creates a list of all patterns with the tag Widget.

```widget
const React = require("react");
const {ComponentList} = require("@patternplate/widgets");

module.exports = () =>  <ComponentList query="tags=Widget" />;
```

Component Demo

<ComponentDemo /> displays the demo for the component referenced via id.

```widget
const React = require("react");
const {ComponentDemo} = require("@patternplate/widgets");

module.exports = () => <ComponentDemo id="button" />;
```