https://github.com/reecem/svelte-slicezone
SvelteKit Slicezone handler for Prismic SliceMachine
https://github.com/reecem/svelte-slicezone
prismicio slicemachine slicezone sveltekit
Last synced: 11 months ago
JSON representation
SvelteKit Slicezone handler for Prismic SliceMachine
- Host: GitHub
- URL: https://github.com/reecem/svelte-slicezone
- Owner: ReeceM
- Created: 2021-12-25T20:54:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-26T18:26:14.000Z (over 4 years ago)
- Last Synced: 2025-06-29T08:38:17.015Z (12 months ago)
- Topics: prismicio, slicemachine, slicezone, sveltekit
- Language: Svelte
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Svelte Slicezone
This is a slice zone component for Prismic.
The current component makes the current assumptions:
There is a document that is passed that has a `slices` key:
```js
{
// other keys
slices: []
}
```
To use the SliceZone and resolver.
```html
import { SliceZone, SliceResolver } from '@reecem/svelte-slicezone';
// Load the index listing of slices.
import * as Slices from '$lib/slices';
// this is the list of slices to provide.
// you can add others from other libs
const allSlices = { ...Slices, /** ...anotherList */ };
```