@chasket/chasket-ui
v0.2.2
Published
Official UI component library for Chasket — pre-built, accessible Web Components
Maintainers
Readme
@chasket/chasket-ui
Part of the Chasket ecosystem.
Pre-built UI component library for Chasket. All components are native Web Components with Shadow DOM style encapsulation.
Zero dependencies.
Installation
npm install @chasket/chasket-ui<!-- All components -->
<script src="node_modules/@chasket/chasket-ui/dist/chasket-ui.js"></script>
<!-- Individual component -->
<script src="node_modules/@chasket/chasket-ui/dist/fl-button.js"></script>Components
<fl-button>
Button with variants, sizes, and loading state.
<fl-button>Click me</fl-button>
<fl-button variant="danger" size="lg">Delete</fl-button>
<fl-button loading>Saving...</fl-button><fl-input>
Text input with label, validation, and form integration.
<fl-input label="Email" placeholder="[email protected]" required></fl-input>
<fl-input label="Password" error="Must be 8+ characters"></fl-input><fl-card>
Content container with header and footer slots.
<fl-card>
<span slot="header">Title</span>
<p>Card content here.</p>
</fl-card><fl-dialog>
Modal dialog with backdrop and focus trapping.
<fl-dialog open>
<span slot="title">Confirm</span>
<p>Are you sure?</p>
</fl-dialog><fl-tabs>
Tabbed navigation with keyboard support.
<fl-tabs>
<fl-tab label="Tab 1">Content 1</fl-tab>
<fl-tab label="Tab 2">Content 2</fl-tab>
</fl-tabs><fl-alert> <fl-badge> <fl-toggle> <fl-spinner>
Additional utility components for notifications, labels, switches, and loading indicators.
Building from source
The .csk source files are in components/. To rebuild:
node build.jsPart of the Chasket ecosystem
This package is part of Chasket, a template-first Web Component compiler.
