Slots
layouts/
└── catalog/
└── example-catalog/
├── Main.vue
└── slots/
└── custom-bottom-bar/
├── CustomBottomBar.vue
├── server.ts
└── client.tsHow Slots Work
<template>
<div>
<slot :name="Slot.PRODUCT_LIST" />
<slot :name="Slot.CUSTOM_SLOT" slot-id="custom-bottom-bar" />
</div>
</template>
<script setup lang="ts">
import { CatalogLayoutSlot as Slot } from '@lightspeed/crane-api';
</script>Slot Files
File
Required
Description
Connecting a Slot to a Layout
Validation Errors
Slot Errors
Error
Cause
Resolution
Schema Errors
Error
Cause
Resolution
Last updated
Was this helpful?
