Skip to content

A flexible and customizable library for rendering Portable Text content in your Astro projects

License

Notifications You must be signed in to change notification settings

theisel/astro-portabletext

Repository files navigation

astro-portabletext logo

astro-portabletext

npm version npm downloads license

A flexible and customizable library for rendering Portable Text content in Astro projects.

🚀 Features

  • Core components for common Portable Text elements.
  • Customizable rendering using slots or your own components.
  • Flexible control with the render function via usePortableText.
  • Built with TypeScript support.

🎮 Demonstration

Jump in and see it in action:

📖 Resources

Versions:

Sanity Logo 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.