Playground GitHub npm

Components

56 components + 8 blocks — copy-paste Slint, install with slintcn add.

Components

Button
Clickable action — 8 variants × 8 sizes, focus ring, press feedback.
Card
Surface container + CardHeader/Title/Description/Content/Footer.
Input
Single-line text field with focus ring and placeholder.
Badge
Small status label — default/secondary/outline/destructive/ghost/link.
Separator
Horizontal or vertical hairline divider.
Label
Form label — default/muted/required (asterisk).
Dialog Panel
Headless dialog card (no Scrim/mount) for your own overlay root.
Dialog
Modal overlay with title/description, X-close, click-outside dismiss.
Alert Dialog Panel
Headless destructive-confirm card (Cancel + Action) for your own overlay root.
Alert Dialog
Destructive-confirm modal — Cancel + Action, no backdrop dismiss.
Sheet Panel
Headless drawer card surface (no Scrim/slide) for your own overlay root.
Sheet
Side-anchored drawer (top/right/bottom/left) with slide animation.
Tooltip
Hover bubble (inverted) in a PopupWindow that escapes parent bounds.
Toast
Stacked notification queue (Rust-backed VecModel) with fade-out.
Tabs
Segmented control or line variant; arrow-key navigation.
Checkbox
Path-drawn check with optional label; Space toggles.
Switch
Sliding on/off toggle (36×20 track) with optional label.
Icon
Path-stroke icon (24-unit viewBox) with size + tint.
Radio Group
Single-select group, vertical or horizontal, arrow-key nav.
Select
Trigger + PopupWindow dropdown (close-on-click-outside).
Progress
Horizontal value bar (0–100) with animated fill.
Skeleton
Pulsing placeholder for loading states.
Avatar
Circular image with initials fallback; size variants.
Alert
Bordered callout (icon + title + description); default/destructive.
Textarea
Multi-line word-wrapping text field with focus ring.
Toggle
Two-state pressable button (default/outline).
Toggle Group
Single-select row of toggles.
Accordion
Single-open collapsible with animated height + chevron swap.
Slider
Draggable value slider (track + thumb), arrow-key support.
Breadcrumb
Navigation path with chevron separators; last item = current.
Pagination
Prev / page-numbers / next with active highlight.
Table
Header + rows, equal-stretch columns, hairline dividers.
Text
Typography scale — 8 variants × 5 tones (import as Typography).
Keycap
Keyboard-hint cap for HUDs — size × tone (affirm/deny).
HUD Pill
Rounded-full HUD status pill (scrim0/1/2).
Slot Tile
Inventory / hotbar slot (tone × state × interactive), holds children.
Scroll Area
Clipped Flickable viewport with a slim custom scrollbar.
Popover
Click-triggered floating panel; closes on click outside.
Context Menu
Right-click menu over an area; opens at the cursor.
Dropdown Menu
Click-triggered action menu anchored below the trigger.
Hover Card
Hover-triggered floating card (title + description).
Menubar
Horizontal menu bar (File/Edit/View); each label opens its own menu.
Navigation Menu
Horizontal navigation strip with an active highlight; you drive routing.
Combobox
Searchable Select — type to filter, Enter to choose.
Command
Command palette (⌘K) — modal search over an action list.
Data Table
Sortable / paginated table — click headers to sort, rows to act.
Calendar
Month-grid date picker; the consumer owns the date math.
Date Picker
Trigger that opens a Calendar in a popup.
Sidebar
Collapsible app sidebar — icons + labels, active highlight.
Empty
Empty-state surface — icon + title + description + optional CTA.
Aspect Ratio
Layout helper — locks child height to a fraction of its width.
Collapsible
Single show/hide section — trigger toggles the body.
Button Group
Visually-joined cluster of Buttons (zero-gap horizontal row).
Hotbar
Horizontal strip of SlotTiles for inventory / abilities.
Reticle
Crosshair overlay — 4 ticks + optional center dot.
Compass Strip
Horizontal heading indicator — N/E/S/W marks scroll under a center pointer.

Blocks