astro components
a component library for Astro, but it is not complete yet.
Issues and pull requests are welcomed!
features
- support SSG
- support dark mode
Install
components
- Expandion
- Tabs
customization
There have 3 ways to customize:
-
all components have a
class
prop for root element. you can customize global styles. -
just copy source code and customize css.
-
Reuse a built-in component. for example:
under the hood
take <Tabs>
as an example:
<Tabs>
will be transformed to custom element but without shadowRoot.
do nothing in CSR(Client-Side Rendering)without shadowRoot, all js just works for hydration.
so SSG will work well.