Ambar UI is a modern component library for Svelte 5.
Copy individual components into your project — or install the whole package via npm.
Every component is a single .svelte file, built with Svelte 5 runes and Tailwind CSS v4.
No wrapper libraries. No hidden magic. You own the code.
npm install @ambar-ui/svelte
Or copy any .svelte file directly from src/lib/components/.
Bar · Candlestick · Donut · Heatmap · Line · Realtime (WebSocket-ready) · Sparkline
Button · Checkbox · Input · OTP Input · Radio · Search · Select · Slider · Switch · Textarea
Dialog · Drawer · Dropdown · Popover · Sheet · Toast · Tooltip
Accordion · Avatar · Breadcrumb · Sidebar · Tabs · Flex / Grid / HStack / VStack
Empty State · Link · List · Progress · Skeleton · Spinner · Typography
Real-time chart — Feed any live data source (WebSocket, polling, game loop) via a single latestPrice prop. Smooth 60fps animation built in. → docs
Full-featured Sidebar — 4 item styles, 3 variants, collapsible icon rail, offcanvas mobile drawer, nested items, badges, animations. → docs
Live theme engine — 6 themes × 12 accent colors × 9 fonts. Everything is a CSS variable, persisted per-user. Toggle live on the docs site. → theming
AI-ready — Machine-readable component reference at /llms.txt. Paste into Claude, Cursor, or Copilot for accurate code generation.
Zero config — just CSS variables:
@import 'tailwindcss';
@theme inline {
--color-accent: oklch(0.6 0.2 265);
}
https://ambarui.vercel.app/llms.txt ← compact API reference
https://ambarui.vercel.app/llms-full.txt ← full source of every component
Svelte 5.0+ · SvelteKit 2.0+ · Tailwind CSS 4.0+ · TypeScript 5.0+
src/lib/components/src/lib/index.tssrc/routes/components/[name]/+page.svelteMIT
Made for the Svelte community · ⭐ Star on GitHub