A flexible and customizable library for rendering Portable Text content in Astro projects.
- Core components for common Portable Text elements.
- Customizable rendering using
slots
or your owncomponents
. - Flexible control with the
render
function viausePortableText
. - Built with TypeScript support.
Jump in and see it in action:
- Installation & usage docs: Read the full documentation
- TypeScript types: Type definitions
- Examples: Browse practical examples
Versions:
This library is officially recommended by Sanity for rendering Portable Text in Astro projects.
Helpful resources:
We welcome contributions to improve astro-portabletext
!
If you find a bug or have a feature request, please open an issue. If you'd like to contribute code, feel free to submit a pull request.
This project is licensed under the ISC License.