<script>
import 'nnui-kit';
let activeTab = $state('all');
let sliderValue = $state(50);
let selected = $state('');
</script>
<!-- Standalone Form-Associated Calendar -->
<ui-calendar value="2026-10-03" name="appointment_date"></ui-calendar>
<script type="module">
const cal = document.querySelector('ui-calendar');
cal.addEventListener('change', (e) => {
console.log('Selected date:', e.detail.value);
});
</script>
How to Utilize
NNUI-KIT components live directly in the document Light DOM. You can use them via declarative HTML, with our first-class React wrapper, or platform-natively in Svelte, Vue, Astro, and HTMX:
React 18 & 19 (Next.js 15 App Router)
import 'nnui-kit/css';
import 'nnui-kit/client';
import { Calendar } from 'nnui-kit/react';
Universal Web Components (Vue 3, Svelte 5, Astro, HTMX)