70+ Components
Complete UI library with buttons, forms, navigation, overlays, data display, and marketing components.
Like shadcn/ui but for Vanilla JavaScript/TypeScript
# Initialize your project
npx windelements@latest init
# Add components
npx windelements@latest add button
npx windelements@latest add card
npx windelements@latest add dialog
# Or add all components
npx windelements@latest add --allimport { createButton } from './components/ui/button';
import { createCard, createCardHeader, createCardTitle, createCardContent } from './components/ui/card';
// Create a button
const button = createButton({
variant: 'default',
children: 'Click me!',
onClick: () => alert('Hello WindElements!')
});
// Create a card
const card = createCard();
const header = createCardHeader();
const title = createCardTitle({ children: 'Welcome' });
const content = createCardContent();
content.getElement().appendChild(button.getElement());
header.getElement().appendChild(title.getElement());
card.getElement().appendChild(header.getElement());
card.getElement().appendChild(content.getElement());
document.body.appendChild(card.getElement());Button, Button Group, Input, Label, Textarea, Form, File Upload, Checkbox, Switch, Radio Group, Kbd
Card, Separator, Accordion, Aspect Ratio, Breadcrumb, Collapsible, Tabs, Scroll Area, Divider, Resizable
Navbar, Sidebar, Footer, Menubar, Dropdown Menu, Context Menu
Alert, Alert Dialog, Badge, Progress, Skeleton, Spinner, Toast, Tooltip, Empty, Notification, Sonner
Select, Slider, Toggle, Toggle Group, Input OTP, Combobox, Counter, Calendar, Date Picker, Rating
Avatar, Avatar Group, Table, Data Table, Typography, Pagination, Chip, Stats, Timeline, Stepper, Carousel, Testimonial, Empty
Dialog, Drawer, Popover, Modal, Sheet, Hover Card, Hint, Command, Alert Dialog, Tooltip
Hero, Feature Card, Pricing Card, Testimonial