{{ name }} - Collection: {{ props.collection }}
```
The props you can use in an layout are:
- `collection` — The current collection's name.
- `selection` (sync) - Any currently selected items.
- `layout-options` (sync) - The user's current saved layout options.
- `layout-query` (sync) - The user's layout query parameters. (eg: sort, limit, etc)
- `filters` (sync) - The user's currently active filters.
- `search-query` (sync) - The user's current search query.
## 2. Install Dependencies
Set up a package.json file by running:
```bash
npm init -y
```
To be read by the Admin App, your custom layouts's Vue component must first be bundled into a single `index.js` file. We
recommend bundling your code using the directus-extension CLI from our `@directus/extension-sdk` package. The CLI
internally uses a Rollup configuration tailored specifically to bundling Directus extensions. To install the Extension
SDK, run this command:
```bash
npm i -D @directus/extension-sdk
```
For the directus-extension CLI to recognize the extension type, the input path and the output path, add this field to
the root of the `package.json` file:
```json
"directus:extension": {
"type": "layout",
"path": "dist/index.js",
"source": "src/index.js",
"host": "^9.0.0-rc.87",
"hidden": false
}
```
## 3. Develop Your Custom Layout
The layout itself is simply a Vue component, which provides an blank canvas for creating anything you need.
## 4. Build and Deploy
To build the layout for use within Directus, run:
```bash
npx directus-extension build
```
Finally, move the output from your layout's `dist` folder into your project's `/extensions/layouts/my-custom-layout`
folder. Keep in mind that the extensions directory is configurable within your env file, and may be located elsewhere.