A collection of reusable web components built with TypeScript.
npm install @rtcamp/web-components
// Import the component
import '@rtcamp/web-components/build/accordion';
// Import styles
import '@rtcamp/web-components/build/style.css';
// TypeScript usage
import { Accordion } from '@rtcamp/web-components';
- Clone the repository
- Install dependencies:
npm install
- Start development server:
npm run dev
- Build for production:
npm run build
- You can use any local development server e.g.
php -S localhost:3000
and then the component will be available at http://localhost/src/component-name. For example use http://localhost:3000/src/slider for slider.
GPL-3.0-or-later