/astro-components

A repository of some reusable astro components that I coded over time

Primary LanguageTypeScriptMIT LicenseMIT

🚀 Astro Components

Astro Components is a collection of all the reusable components I coded over the years for my Astro landing sites using Tailwind CSS and shadcn/ui components.


License Maintained Contributions Welcome


Table of Contents

Getting Started

Astro Components are ready to copy and paste into your Astro project. You can use them as they are or customize them to your needs.

⚠️ Some components need installation of dependencies, so make sure to read the component's README file before using it.

Structure

Astro Components is structured in a way that you can easily copy and paste the components you need into your Astro project.

Each component lives under it's own folder in this repository so that you can easily find the component you need.

This means that if you want a navbar, you can just go to the navbar folder and copy the Navbar.astro wherever you want in your Astro project.

Configuration

You can copy and paste the component you want and it will work out of the box, but you can also customize it to your needs two ways:

  1. Using Props: You can pass props to the component to customize it. For example, you can pass a title prop to the Header.astro component to change the title of the header.

  2. Modifying the component directly: You can also modify the component directly as you see fit and not use props. You can change the sample data or text in the component to your own.

Customize Styling

All the components use Tailwind CSS: You can also customize the components using Tailwind CSS. You can change the colors, sizes, and more by changing the classes in the component.


Frequently Asked Questions

  • Why?

Contributing

If you have any idea, suggestions or find any bugs, feel free to open a discussion, an issue or create a pull request. That would be very useful for all of us and we would be happy to listen and take action.

License

Astro Components is licensed under the MIT license — see the LICENSE file for details.