Skip to content
On this page

Components

A list of Vue components that can be used to style content in the documentation theme.

INFO

You can use Vue.js markup within Markdown files. For more information, see Vue in Markdown.

Markdown Extensions

Vitepress provides a set of markdown extensions that can be used to style code blocks, hints, collapsible elements and more.

PageRef

A block component to reference other pages in the documentation or external pages.

PropertyrequiredDescription
pagetruePath to the page
titlefalseTitle of the page
subfalseSubtitle of the page
iconfalseIcon of the reference
targetfalsehref target of the reference
videofalseSet, if a video is referenced
template
<PageRef
    title="App Store Guidelines"
    page="http://www.shopware.com"
    sub="Guidelines for contributing apps to the store"
    target="_blank"
    video
    />

Tabs

A component to organize content of different types in tabs.

Each tab is defined by a Tab component.

PropertyrequiredDescription
titletrueTitle of the tab

Each tab can contain arbitrary content.

template
<Tabs>
<Tab title="PHP Criteria">

This `criteria` object can be passed to the `EntityRepository::search()` method.

$criteria = new Criteria();
$criteria->addFilter(new EqualsFilter('stock', 10));
```

</Tab>

<Tab title="API Criteria">

Pass this JSON within the request body of your API call.

```json
 {
    "filter": [
        { 
            "type": "equals", 
            "field": "stock", 
            "value": 10
        }    
    ]
}
```
</Tab>
</Tabs>

Example

CodeBlock

Code blocks are used to display code snippets together with a title or reference to a file.

PropertyrequiredDescription
titlefalseTitle of the code block
template
<CodeBlock title="src/index.html">

```html
<!doctype html>
<html lang="en">
<head>
    <title>My App</title>
</head>
<body>
    Hello world!
</body>
</html>
```

</CodeBlock>

Example

src/index.html
html
<!doctype html>
<html lang="en">
<head>
    <title>My App</title>
</head>
<body>
    Hello world!
</body>
</html>