Installation
The Astro adapter is currently available. Install ClassiJS in your Astro project with your package manager.
npm install classijsImport the stylesheet
Import the shared stylesheet once in the layout that wraps your pages.
src/layouts/Layout.astro
---
import 'classijs/styles.css';
---
<html lang="en">
<body>
<slot />
</body>
</html>Check the installation
Import a component directly from the package. ClassiJS does not require an Astro integration entry or a client directive.
src/pages/index.astro
---
import { Button } from 'classijs';
---
<Button>Hello</Button>