Krewire UI Components Catalog

Welcome to the Krewire UI (kui) Components Catalog.

Krewire UI provides 66 accessible, zero-dependency, pop-brutalist components built natively for the Krewire ecosystem. Components can be imported as versioned packages (@krewire/ui), used as typed Go widgets, or ejected locally if full source customization is required.


Live Previews

Seven core components have an interactive preview: Button, Badge, Input, Card, Modal, Tabs, and Alert. Each page shows the real component in light and dark themes with variant and size toggles, and the component playground shows all seven together.


Component Categories

  • <Navbar /> โ€” Main application header with brand logo, nav links, and drawer trigger.
  • <NavMenu /> โ€” Horizontal navigation menu with interactive dropdown menus.
  • <Sidebar /> โ€” Collapsible sidebar navigation for documentation and dashboard workspaces.
  • <SideMenu /> โ€” Vertical navigational list for administrative sidebars.
  • <Breadcrumb /> โ€” Hierarchical navigation trail indicating current page location.
  • <BreadcrumbItem /> โ€” Individual segment within a breadcrumb navigation trail.
  • <Tabs /> โ€” Accessible tabbed content switcher supporting persistent active states.
  • <Pagination /> โ€” Page navigation bar with previous, next, and numbered page links.
  • <Drawer /> โ€” Smooth sliding drawer panel for mobile navigation and overlays.
  • <Hamburger /> โ€” Animated 3-line hamburger menu toggle button for mobile drawers.
  • <Brand /> โ€” Ecosystem brand mark with logo icon and version badge.
  • <Head /> โ€” Document head injector for standard meta tags, OpenGraph, and favicon assets.
  • <Footer /> โ€” Comprehensive multi-column footer with brand, navigation links, and copyright.

Actions & Buttons

  • <Button /> โ€” Core interactive button supporting primary, secondary, accent, outline, and ghost variants.
  • <ButtonGroup /> โ€” Grouped button segment with unified borders and active states.
  • <Dropdown /> โ€” Zero-dependency dropdown menu built on native details and summary elements.
  • <ActionMenu /> โ€” Compact contextual dropdown action menu for table rows and cards.
  • <Link /> โ€” Accessible hyperlink with underline transitions and target security.
  • <Toggle /> โ€” Binary toggle switch for instant setting changes.
  • <ThemeSwitch /> โ€” Dark and light mode toggle button with localStorage persistence.
  • <LangSwitch /> โ€” Language selector switch for multi-lingual internationalized applications.

Feedback & Status

  • <Alert /> โ€” Contextual feedback banner supporting info, success, warning, and error states.
  • <Banner /> โ€” Prominent top-level announcement bar with dismiss trigger.
  • <Toast /> โ€” Transient notification toast banner with auto-dismiss timer.
  • <Badge /> โ€” Compact pill badge with color variants for tags, counts, and status indicators.
  • <Tag /> โ€” Removable or clickable keyword tag with color variants.
  • <Progress /> โ€” Determinate and indeterminate progress bar indicator.
  • <Spinner /> โ€” Accessible animated SVG loader spinner for pending operations.
  • <Skeleton /> โ€” Animated shimmer placeholder for asynchronous loading states.
  • <Empty /> โ€” Empty-state placeholder with icon, message, and call-to-action button.
  • <Callout /> โ€” Bordered callout container for documentation tips, warnings, and notes.

Data Display & Content

  • <Card /> โ€” Elevated card surface with header, media, body, and footer slots.
  • <Stat /> โ€” Key performance indicator card with numeric metrics and trend indicators.
  • <Table /> โ€” Responsive data table with striped, bordered, and hover highlight states.
  • <Accordion /> โ€” Expandable and collapsible content panels with keyboard accessibility.
  • <Collapse /> โ€” Collapsible single-panel container for toggling visibility.
  • <Timeline /> โ€” Chronological vertical activity and event timeline.
  • <CodeWindow /> โ€” macOS-style code preview window with traffic light buttons and copy action.
  • <Terminal /> โ€” Single-line interactive terminal preview with copy command button.
  • <Code /> โ€” Inline monospace code snippet with high contrast styling.
  • <Avatar /> โ€” User profile avatar displaying image with automatic fallback initials.
  • <Kbd /> โ€” Keyboard key visual indicator for shortcuts and command hotkeys.
  • <Divider /> โ€” Horizontal or vertical separator line with optional text label.
  • <Heading /> โ€” Semantic heading typography wrapper supporting h1 through h6.
  • <Text /> โ€” Typography wrapper for body paragraphs, lead text, and muted captions.
  • <List /> โ€” Styled unordered and ordered list container.
  • <Ecosystem /> โ€” Interactive grid component displaying Krewire's 10-repository architecture.

Forms & Inputs

  • <Form /> โ€” Accessible form wrapper with method spoofing and submission states.
  • <Input /> โ€” Standard text input with floating label, error states, and helper text.
  • <SearchInput /> โ€” Search box with search icon and instant clear button.
  • <Select /> โ€” Native styled dropdown select input.
  • <Textarea /> โ€” Multi-line text input field with auto-resizing support.
  • <Checkbox /> โ€” High-contrast accessible checkbox input with custom pop-border styling.
  • <Radio /> โ€” Single-choice radio button with pop-brutalist circle styling.
  • <Slider /> โ€” Range slider input with numeric bubble value display.

Overlays & Dialogs

  • <Modal /> โ€” Accessible modal dialog built on the native HTML dialog element.
  • <Popover /> โ€” Floating contextual popover container anchored to target elements.
  • <Tooltip /> โ€” Accessible hover and focus informative tooltip.

Layout Primitives

  • <Container /> โ€” Centered responsive page container maintaining standard max-width boundaries.
  • <Box /> โ€” Versatile layout box supporting border, padding, and pop-brutalist shadows.
  • <Flex /> โ€” Flexible layout container with configurable direction, align, and justify.
  • <Grid /> โ€” CSS Grid container with configurable columns and gap tokens.
  • <HStack /> โ€” Horizontal flex container with uniform spacing between children.
  • <VStack /> โ€” Vertical flex container with uniform spacing between children.
  • <Stack /> โ€” Directional layout container with configurable gap spacing.
  • <Section /> โ€” Full-width semantic section wrapper with vertical padding tokens.

Using Components

In .kiw Templates

Import components by name:

<script>
  import { Button, Card } from '@krewire/ui';
</script>

In Go Code

Import the components package:

import "github.com/krewire/ui/components"

Local Customization (Opt-in)

To fork and edit a component locally in ./components/:

krew ui vendor <ComponentName>

And link the canonical stylesheet in your layout <head>:

<link rel="stylesheet" href="/styles/krewire-ui.css">