Astro Portable Text
Render Portable Text with Astro.
Install command
npm i astro-portabletextastro-portabletext
A flexible and customizable library for rendering Portable Text content in Astro projects.
๐ Features
- Core components for common Portable Text elements.
- Customizable rendering using
slotsor your owncomponents. - Flexible control with the
renderfunction viausePortableText. - Built with TypeScript support.
๐ฎ Demonstration
Jump in and see it in action:
๐ Resources
- Installation & usage docs: Read the full documentation
- TypeScript types: Type definitions
- Examples: Browse practical examples
Versions:
Sanity Integration
This library is officially recommended by Sanity for rendering Portable Text in Astro projects.
Helpful resources:
๐ Contributing
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.
๐ License
This project is licensed under the ISC License.