A headless component library for Astro
Astro Headless UI is a component library designed to be used with Astro. It is a work in progress, with finished components and their documentation available. The library includes a range of components and utility functions to enhance the development of Astro projects.
<NoScriptProperty> for CSS JavaScript detection and <AnimatedSpriteSheet> for animating a sprite sheet as a background image.<Rating> for displaying ratios, <Link> for creating active links, and <TableOfContents> for generating a table of contents.<Wrap> for conditionally wrapping a component, <Switch> for advanced conditional rendering, and <For> for mapping components.<DarkThemeToggle> for a dark theme toggle button and <CopyCode> for attaching a button to copy code.<ScrollProperty> for accessing the scroll position and <MouseProperty> for accessing the mouse position inside CSS.To install Astro Headless UI, you need to add it as a dependency in your Astro project. You can do this by running the following command in your project directory:
npm install astro-headless-ui
Once installed, you can import and use the components and utility functions in your Astro project.
Astro Headless UI is a powerful component library designed for use with Astro. It provides a range of components and utility functions that can enhance the development of Astro projects. With features such as style components, utility components, and client-side interactivity, Astro Headless UI offers a comprehensive set of tools for building modern, dynamic websites.