Render Portable Text with Solid JS
npm install @portabletext/solid
Render Portable Text with Solid JS.
```
npm install --save @portabletext/solid
`tsx
import { PortableText, type PortableTextComponents } from '@portabletext/solid'
import type { PortableTextBlock } from '@portabletext/types'
import type { Component } from 'solid-js'
const blocks: PortableTextBlock[] = [
/ array of portable text blocks /
]
const components: PortableTextComponents = {
/ optional object of custom components to use /
}
const App: Component = () => {
return
}
`
This repository is based on solid-portabletext`, shoutout to @nonphoto for the original work 💖
MIT