Zubra UI
Code for
GitHub

Web components you copy in and own.

Ready-made pieces for websites: switches, star ratings, date pickers, pop-up dialogs and more. They work on any site, in plain HTML or with React, Vue, Svelte or Angular. Copy one in, and it's yours to change.

Get startedBrowse all 81 components

toggle-switch

Try it: events appear here (checkedchange).

segmented-control

Try it: events appear here (valuechange).

star-rating

Try it: events appear here (valuechange).

progress-ring

This one has no events: it shows what it's given.

quantity-stepper

Try it: events appear here (valuechange).

tag-input

Try it: events appear here (valuechange).

Themes with character

Colours, fonts, corners and motion, for a whole page or one section: put data-theme where you want it. See all five on the same app, or make your own.

Start

  1. Add a component. No setup first: no components.json, no Tailwind, no framework.

    npx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/toggle-switch.jsonpnpm dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/toggle-switch.jsonyarn dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/toggle-switch.jsonbunx --bun shadcn@latest add https://zubra-js.github.io/zubra-ui/r/toggle-switch.json
  2. Import it and the theme once, then use the tag.

    index.html
    <toggle-switch
      label="Email notifications"
      description="A summary of your week, every Monday."
      name="email"
    ></toggle-switch>
    
    <script type="module">
      import './components/zubra/toggle-switch.js';
    
      const element = document.querySelector('toggle-switch');
      element.checked = true;
      element.addEventListener('checkedchange', (event) => console.log('checkedchange', event.detail));
    </script>
    Example.jsx
    import './components/zubra/toggle-switch.js';
    
    const checked = true;
    
    export function ToggleSwitchExample() {
      return (
        <toggle-switch
          label="Email notifications"
          description="A summary of your week, every Monday."
          name="email"
          checked={checked}
          oncheckedchange={(event) => console.log('checkedchange', event.detail)}
        ></toggle-switch>
      );
    }
    Example.vue
    <script setup>
    import './components/zubra/toggle-switch.js';
    const checked = true;
    const onCheckedchange = (event) => console.log('checkedchange', event.detail);
    </script>
    
    <template>
      <toggle-switch
        label="Email notifications"
        description="A summary of your week, every Monday."
        name="email"
        :checked.prop="checked"
        @checkedchange="onCheckedchange"
      ></toggle-switch>
    </template>
    
    <!-- vite.config.js: vue({ template: { compilerOptions: { isCustomElement: (tag) => tag.includes('-') } } }) -->
    Example.svelte
    <script>
      import './components/zubra/toggle-switch.js';
      const checked = true;
    </script>
    
    <toggle-switch
      label="Email notifications"
      description="A summary of your week, every Monday."
      name="email"
      {checked}
      oncheckedchange={(event) => console.log('checkedchange', event.detail)}
    ></toggle-switch>
    example.component.ts
    import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
    import './components/zubra/toggle-switch.js';
    
    @Component({
      selector: 'app-toggle-switch-example',
      schemas: [CUSTOM_ELEMENTS_SCHEMA],
      template: `
        <toggle-switch
          label="Email notifications"
          description="A summary of your week, every Monday."
          name="email"
          [checked]="checked"
          (checkedchange)="onCheckedchange($event)"
        ></toggle-switch>
      `,
    })
    export class ToggleSwitchExample {
      checked = true;
    
      onCheckedchange(event: Event) {
        console.log('checkedchange', (event as CustomEvent).detail);
      }
    }
  3. Change it. The file is yours. For the readable source, add /r/src/toggle-switch.json instead and edit the .zb file with Zubra.

Already on shadcn/ui?

The components use your theme as it is: --primary, --border, --muted-foreground, --radius and the rest. Skip the theme file, and they match your app.

All 81 components

Every one at once (shadcn takes several items in one command):

npx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/accordion-panel.json https://zubra-js.github.io/zubra-ui/r/auto-grid.json https://zubra-js.github.io/zubra-ui/r/chat-message.json https://zubra-js.github.io/zubra-ui/r/choice-cards.json https://zubra-js.github.io/zubra-ui/r/cluster-layout.json https://zubra-js.github.io/zubra-ui/r/color-swatches.json https://zubra-js.github.io/zubra-ui/r/combo-box.json https://zubra-js.github.io/zubra-ui/r/dashboard-shell.json https://zubra-js.github.io/zubra-ui/r/date-range.json https://zubra-js.github.io/zubra-ui/r/donut-chart.json https://zubra-js.github.io/zubra-ui/r/dropdown-menu.json https://zubra-js.github.io/zubra-ui/r/flip-card.json https://zubra-js.github.io/zubra-ui/r/image-gallery.json https://zubra-js.github.io/zubra-ui/r/kanban-column.json https://zubra-js.github.io/zubra-ui/r/line-chart.json https://zubra-js.github.io/zubra-ui/r/masonry-grid.json https://zubra-js.github.io/zubra-ui/r/message-composer.json https://zubra-js.github.io/zubra-ui/r/modal-dialog.json https://zubra-js.github.io/zubra-ui/r/money-input.json https://zubra-js.github.io/zubra-ui/r/pricing-block.json https://zubra-js.github.io/zubra-ui/r/progress-ring.json https://zubra-js.github.io/zubra-ui/r/quantity-stepper.json https://zubra-js.github.io/zubra-ui/r/segmented-control.json https://zubra-js.github.io/zubra-ui/r/settings-block.json https://zubra-js.github.io/zubra-ui/r/sidebar-layout.json https://zubra-js.github.io/zubra-ui/r/signin-block.json https://zubra-js.github.io/zubra-ui/r/spark-line.json https://zubra-js.github.io/zubra-ui/r/stack-layout.json https://zubra-js.github.io/zubra-ui/r/star-rating.json https://zubra-js.github.io/zubra-ui/r/step-indicator.json https://zubra-js.github.io/zubra-ui/r/streak-grid.json https://zubra-js.github.io/zubra-ui/r/tab-list.json https://zubra-js.github.io/zubra-ui/r/tag-input.json https://zubra-js.github.io/zubra-ui/r/toggle-switch.json https://zubra-js.github.io/zubra-ui/r/tool-tip.json https://zubra-js.github.io/zubra-ui/r/action-button.json https://zubra-js.github.io/zubra-ui/r/text-field.json https://zubra-js.github.io/zubra-ui/r/check-box.json https://zubra-js.github.io/zubra-ui/r/radio-group.json https://zubra-js.github.io/zubra-ui/r/select-field.json https://zubra-js.github.io/zubra-ui/r/status-badge.json https://zubra-js.github.io/zubra-ui/r/user-avatar.json https://zubra-js.github.io/zubra-ui/r/content-card.json https://zubra-js.github.io/zubra-ui/r/alert-banner.json https://zubra-js.github.io/zubra-ui/r/loading-spinner.json https://zubra-js.github.io/zubra-ui/r/skeleton-block.json https://zubra-js.github.io/zubra-ui/r/toast-region.json https://zubra-js.github.io/zubra-ui/r/backdrop-pattern.json https://zubra-js.github.io/zubra-ui/r/switcher-layout.json https://zubra-js.github.io/zubra-ui/r/reel-layout.json https://zubra-js.github.io/zubra-ui/r/breadcrumb-trail.json https://zubra-js.github.io/zubra-ui/r/page-nav.json https://zubra-js.github.io/zubra-ui/r/side-sheet.json https://zubra-js.github.io/zubra-ui/r/popover-panel.json https://zubra-js.github.io/zubra-ui/r/command-palette.json https://zubra-js.github.io/zubra-ui/r/nav-bar.json https://zubra-js.github.io/zubra-ui/r/data-table.json https://zubra-js.github.io/zubra-ui/r/progress-bar.json https://zubra-js.github.io/zubra-ui/r/empty-state.json https://zubra-js.github.io/zubra-ui/r/stat-card.json https://zubra-js.github.io/zubra-ui/r/bar-chart.json https://zubra-js.github.io/zubra-ui/r/range-slider.json https://zubra-js.github.io/zubra-ui/r/file-drop.json https://zubra-js.github.io/zubra-ui/r/code-input.json https://zubra-js.github.io/zubra-ui/r/date-field.json https://zubra-js.github.io/zubra-ui/r/hero-section.json https://zubra-js.github.io/zubra-ui/r/feature-grid.json https://zubra-js.github.io/zubra-ui/r/testimonial-card.json https://zubra-js.github.io/zubra-ui/r/faq-list.json https://zubra-js.github.io/zubra-ui/r/site-footer.json https://zubra-js.github.io/zubra-ui/r/newsletter-signup.json https://zubra-js.github.io/zubra-ui/r/logo-cloud.json https://zubra-js.github.io/zubra-ui/r/marquee-strip.json https://zubra-js.github.io/zubra-ui/r/number-ticker.json https://zubra-js.github.io/zubra-ui/r/reveal-on-scroll.json https://zubra-js.github.io/zubra-ui/r/shimmer-button.json https://zubra-js.github.io/zubra-ui/r/shine-border.json https://zubra-js.github.io/zubra-ui/r/spotlight-card.json https://zubra-js.github.io/zubra-ui/r/tilt-card.json https://zubra-js.github.io/zubra-ui/r/typing-text.json https://zubra-js.github.io/zubra-ui/r/word-rotate.jsonpnpm dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/accordion-panel.json https://zubra-js.github.io/zubra-ui/r/auto-grid.json https://zubra-js.github.io/zubra-ui/r/chat-message.json https://zubra-js.github.io/zubra-ui/r/choice-cards.json https://zubra-js.github.io/zubra-ui/r/cluster-layout.json https://zubra-js.github.io/zubra-ui/r/color-swatches.json https://zubra-js.github.io/zubra-ui/r/combo-box.json https://zubra-js.github.io/zubra-ui/r/dashboard-shell.json https://zubra-js.github.io/zubra-ui/r/date-range.json https://zubra-js.github.io/zubra-ui/r/donut-chart.json https://zubra-js.github.io/zubra-ui/r/dropdown-menu.json https://zubra-js.github.io/zubra-ui/r/flip-card.json https://zubra-js.github.io/zubra-ui/r/image-gallery.json https://zubra-js.github.io/zubra-ui/r/kanban-column.json https://zubra-js.github.io/zubra-ui/r/line-chart.json https://zubra-js.github.io/zubra-ui/r/masonry-grid.json https://zubra-js.github.io/zubra-ui/r/message-composer.json https://zubra-js.github.io/zubra-ui/r/modal-dialog.json https://zubra-js.github.io/zubra-ui/r/money-input.json https://zubra-js.github.io/zubra-ui/r/pricing-block.json https://zubra-js.github.io/zubra-ui/r/progress-ring.json https://zubra-js.github.io/zubra-ui/r/quantity-stepper.json https://zubra-js.github.io/zubra-ui/r/segmented-control.json https://zubra-js.github.io/zubra-ui/r/settings-block.json https://zubra-js.github.io/zubra-ui/r/sidebar-layout.json https://zubra-js.github.io/zubra-ui/r/signin-block.json https://zubra-js.github.io/zubra-ui/r/spark-line.json https://zubra-js.github.io/zubra-ui/r/stack-layout.json https://zubra-js.github.io/zubra-ui/r/star-rating.json https://zubra-js.github.io/zubra-ui/r/step-indicator.json https://zubra-js.github.io/zubra-ui/r/streak-grid.json https://zubra-js.github.io/zubra-ui/r/tab-list.json https://zubra-js.github.io/zubra-ui/r/tag-input.json https://zubra-js.github.io/zubra-ui/r/toggle-switch.json https://zubra-js.github.io/zubra-ui/r/tool-tip.json https://zubra-js.github.io/zubra-ui/r/action-button.json https://zubra-js.github.io/zubra-ui/r/text-field.json https://zubra-js.github.io/zubra-ui/r/check-box.json https://zubra-js.github.io/zubra-ui/r/radio-group.json https://zubra-js.github.io/zubra-ui/r/select-field.json https://zubra-js.github.io/zubra-ui/r/status-badge.json https://zubra-js.github.io/zubra-ui/r/user-avatar.json https://zubra-js.github.io/zubra-ui/r/content-card.json https://zubra-js.github.io/zubra-ui/r/alert-banner.json https://zubra-js.github.io/zubra-ui/r/loading-spinner.json https://zubra-js.github.io/zubra-ui/r/skeleton-block.json https://zubra-js.github.io/zubra-ui/r/toast-region.json https://zubra-js.github.io/zubra-ui/r/backdrop-pattern.json https://zubra-js.github.io/zubra-ui/r/switcher-layout.json https://zubra-js.github.io/zubra-ui/r/reel-layout.json https://zubra-js.github.io/zubra-ui/r/breadcrumb-trail.json https://zubra-js.github.io/zubra-ui/r/page-nav.json https://zubra-js.github.io/zubra-ui/r/side-sheet.json https://zubra-js.github.io/zubra-ui/r/popover-panel.json https://zubra-js.github.io/zubra-ui/r/command-palette.json https://zubra-js.github.io/zubra-ui/r/nav-bar.json https://zubra-js.github.io/zubra-ui/r/data-table.json https://zubra-js.github.io/zubra-ui/r/progress-bar.json https://zubra-js.github.io/zubra-ui/r/empty-state.json https://zubra-js.github.io/zubra-ui/r/stat-card.json https://zubra-js.github.io/zubra-ui/r/bar-chart.json https://zubra-js.github.io/zubra-ui/r/range-slider.json https://zubra-js.github.io/zubra-ui/r/file-drop.json https://zubra-js.github.io/zubra-ui/r/code-input.json https://zubra-js.github.io/zubra-ui/r/date-field.json https://zubra-js.github.io/zubra-ui/r/hero-section.json https://zubra-js.github.io/zubra-ui/r/feature-grid.json https://zubra-js.github.io/zubra-ui/r/testimonial-card.json https://zubra-js.github.io/zubra-ui/r/faq-list.json https://zubra-js.github.io/zubra-ui/r/site-footer.json https://zubra-js.github.io/zubra-ui/r/newsletter-signup.json https://zubra-js.github.io/zubra-ui/r/logo-cloud.json https://zubra-js.github.io/zubra-ui/r/marquee-strip.json https://zubra-js.github.io/zubra-ui/r/number-ticker.json https://zubra-js.github.io/zubra-ui/r/reveal-on-scroll.json https://zubra-js.github.io/zubra-ui/r/shimmer-button.json https://zubra-js.github.io/zubra-ui/r/shine-border.json https://zubra-js.github.io/zubra-ui/r/spotlight-card.json https://zubra-js.github.io/zubra-ui/r/tilt-card.json https://zubra-js.github.io/zubra-ui/r/typing-text.json https://zubra-js.github.io/zubra-ui/r/word-rotate.jsonyarn dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/accordion-panel.json https://zubra-js.github.io/zubra-ui/r/auto-grid.json https://zubra-js.github.io/zubra-ui/r/chat-message.json https://zubra-js.github.io/zubra-ui/r/choice-cards.json https://zubra-js.github.io/zubra-ui/r/cluster-layout.json https://zubra-js.github.io/zubra-ui/r/color-swatches.json https://zubra-js.github.io/zubra-ui/r/combo-box.json https://zubra-js.github.io/zubra-ui/r/dashboard-shell.json https://zubra-js.github.io/zubra-ui/r/date-range.json https://zubra-js.github.io/zubra-ui/r/donut-chart.json https://zubra-js.github.io/zubra-ui/r/dropdown-menu.json https://zubra-js.github.io/zubra-ui/r/flip-card.json https://zubra-js.github.io/zubra-ui/r/image-gallery.json https://zubra-js.github.io/zubra-ui/r/kanban-column.json https://zubra-js.github.io/zubra-ui/r/line-chart.json https://zubra-js.github.io/zubra-ui/r/masonry-grid.json https://zubra-js.github.io/zubra-ui/r/message-composer.json https://zubra-js.github.io/zubra-ui/r/modal-dialog.json https://zubra-js.github.io/zubra-ui/r/money-input.json https://zubra-js.github.io/zubra-ui/r/pricing-block.json https://zubra-js.github.io/zubra-ui/r/progress-ring.json https://zubra-js.github.io/zubra-ui/r/quantity-stepper.json https://zubra-js.github.io/zubra-ui/r/segmented-control.json https://zubra-js.github.io/zubra-ui/r/settings-block.json https://zubra-js.github.io/zubra-ui/r/sidebar-layout.json https://zubra-js.github.io/zubra-ui/r/signin-block.json https://zubra-js.github.io/zubra-ui/r/spark-line.json https://zubra-js.github.io/zubra-ui/r/stack-layout.json https://zubra-js.github.io/zubra-ui/r/star-rating.json https://zubra-js.github.io/zubra-ui/r/step-indicator.json https://zubra-js.github.io/zubra-ui/r/streak-grid.json https://zubra-js.github.io/zubra-ui/r/tab-list.json https://zubra-js.github.io/zubra-ui/r/tag-input.json https://zubra-js.github.io/zubra-ui/r/toggle-switch.json https://zubra-js.github.io/zubra-ui/r/tool-tip.json https://zubra-js.github.io/zubra-ui/r/action-button.json https://zubra-js.github.io/zubra-ui/r/text-field.json https://zubra-js.github.io/zubra-ui/r/check-box.json https://zubra-js.github.io/zubra-ui/r/radio-group.json https://zubra-js.github.io/zubra-ui/r/select-field.json https://zubra-js.github.io/zubra-ui/r/status-badge.json https://zubra-js.github.io/zubra-ui/r/user-avatar.json https://zubra-js.github.io/zubra-ui/r/content-card.json https://zubra-js.github.io/zubra-ui/r/alert-banner.json https://zubra-js.github.io/zubra-ui/r/loading-spinner.json https://zubra-js.github.io/zubra-ui/r/skeleton-block.json https://zubra-js.github.io/zubra-ui/r/toast-region.json https://zubra-js.github.io/zubra-ui/r/backdrop-pattern.json https://zubra-js.github.io/zubra-ui/r/switcher-layout.json https://zubra-js.github.io/zubra-ui/r/reel-layout.json https://zubra-js.github.io/zubra-ui/r/breadcrumb-trail.json https://zubra-js.github.io/zubra-ui/r/page-nav.json https://zubra-js.github.io/zubra-ui/r/side-sheet.json https://zubra-js.github.io/zubra-ui/r/popover-panel.json https://zubra-js.github.io/zubra-ui/r/command-palette.json https://zubra-js.github.io/zubra-ui/r/nav-bar.json https://zubra-js.github.io/zubra-ui/r/data-table.json https://zubra-js.github.io/zubra-ui/r/progress-bar.json https://zubra-js.github.io/zubra-ui/r/empty-state.json https://zubra-js.github.io/zubra-ui/r/stat-card.json https://zubra-js.github.io/zubra-ui/r/bar-chart.json https://zubra-js.github.io/zubra-ui/r/range-slider.json https://zubra-js.github.io/zubra-ui/r/file-drop.json https://zubra-js.github.io/zubra-ui/r/code-input.json https://zubra-js.github.io/zubra-ui/r/date-field.json https://zubra-js.github.io/zubra-ui/r/hero-section.json https://zubra-js.github.io/zubra-ui/r/feature-grid.json https://zubra-js.github.io/zubra-ui/r/testimonial-card.json https://zubra-js.github.io/zubra-ui/r/faq-list.json https://zubra-js.github.io/zubra-ui/r/site-footer.json https://zubra-js.github.io/zubra-ui/r/newsletter-signup.json https://zubra-js.github.io/zubra-ui/r/logo-cloud.json https://zubra-js.github.io/zubra-ui/r/marquee-strip.json https://zubra-js.github.io/zubra-ui/r/number-ticker.json https://zubra-js.github.io/zubra-ui/r/reveal-on-scroll.json https://zubra-js.github.io/zubra-ui/r/shimmer-button.json https://zubra-js.github.io/zubra-ui/r/shine-border.json https://zubra-js.github.io/zubra-ui/r/spotlight-card.json https://zubra-js.github.io/zubra-ui/r/tilt-card.json https://zubra-js.github.io/zubra-ui/r/typing-text.json https://zubra-js.github.io/zubra-ui/r/word-rotate.jsonbunx --bun shadcn@latest add https://zubra-js.github.io/zubra-ui/r/accordion-panel.json https://zubra-js.github.io/zubra-ui/r/auto-grid.json https://zubra-js.github.io/zubra-ui/r/chat-message.json https://zubra-js.github.io/zubra-ui/r/choice-cards.json https://zubra-js.github.io/zubra-ui/r/cluster-layout.json https://zubra-js.github.io/zubra-ui/r/color-swatches.json https://zubra-js.github.io/zubra-ui/r/combo-box.json https://zubra-js.github.io/zubra-ui/r/dashboard-shell.json https://zubra-js.github.io/zubra-ui/r/date-range.json https://zubra-js.github.io/zubra-ui/r/donut-chart.json https://zubra-js.github.io/zubra-ui/r/dropdown-menu.json https://zubra-js.github.io/zubra-ui/r/flip-card.json https://zubra-js.github.io/zubra-ui/r/image-gallery.json https://zubra-js.github.io/zubra-ui/r/kanban-column.json https://zubra-js.github.io/zubra-ui/r/line-chart.json https://zubra-js.github.io/zubra-ui/r/masonry-grid.json https://zubra-js.github.io/zubra-ui/r/message-composer.json https://zubra-js.github.io/zubra-ui/r/modal-dialog.json https://zubra-js.github.io/zubra-ui/r/money-input.json https://zubra-js.github.io/zubra-ui/r/pricing-block.json https://zubra-js.github.io/zubra-ui/r/progress-ring.json https://zubra-js.github.io/zubra-ui/r/quantity-stepper.json https://zubra-js.github.io/zubra-ui/r/segmented-control.json https://zubra-js.github.io/zubra-ui/r/settings-block.json https://zubra-js.github.io/zubra-ui/r/sidebar-layout.json https://zubra-js.github.io/zubra-ui/r/signin-block.json https://zubra-js.github.io/zubra-ui/r/spark-line.json https://zubra-js.github.io/zubra-ui/r/stack-layout.json https://zubra-js.github.io/zubra-ui/r/star-rating.json https://zubra-js.github.io/zubra-ui/r/step-indicator.json https://zubra-js.github.io/zubra-ui/r/streak-grid.json https://zubra-js.github.io/zubra-ui/r/tab-list.json https://zubra-js.github.io/zubra-ui/r/tag-input.json https://zubra-js.github.io/zubra-ui/r/toggle-switch.json https://zubra-js.github.io/zubra-ui/r/tool-tip.json https://zubra-js.github.io/zubra-ui/r/action-button.json https://zubra-js.github.io/zubra-ui/r/text-field.json https://zubra-js.github.io/zubra-ui/r/check-box.json https://zubra-js.github.io/zubra-ui/r/radio-group.json https://zubra-js.github.io/zubra-ui/r/select-field.json https://zubra-js.github.io/zubra-ui/r/status-badge.json https://zubra-js.github.io/zubra-ui/r/user-avatar.json https://zubra-js.github.io/zubra-ui/r/content-card.json https://zubra-js.github.io/zubra-ui/r/alert-banner.json https://zubra-js.github.io/zubra-ui/r/loading-spinner.json https://zubra-js.github.io/zubra-ui/r/skeleton-block.json https://zubra-js.github.io/zubra-ui/r/toast-region.json https://zubra-js.github.io/zubra-ui/r/backdrop-pattern.json https://zubra-js.github.io/zubra-ui/r/switcher-layout.json https://zubra-js.github.io/zubra-ui/r/reel-layout.json https://zubra-js.github.io/zubra-ui/r/breadcrumb-trail.json https://zubra-js.github.io/zubra-ui/r/page-nav.json https://zubra-js.github.io/zubra-ui/r/side-sheet.json https://zubra-js.github.io/zubra-ui/r/popover-panel.json https://zubra-js.github.io/zubra-ui/r/command-palette.json https://zubra-js.github.io/zubra-ui/r/nav-bar.json https://zubra-js.github.io/zubra-ui/r/data-table.json https://zubra-js.github.io/zubra-ui/r/progress-bar.json https://zubra-js.github.io/zubra-ui/r/empty-state.json https://zubra-js.github.io/zubra-ui/r/stat-card.json https://zubra-js.github.io/zubra-ui/r/bar-chart.json https://zubra-js.github.io/zubra-ui/r/range-slider.json https://zubra-js.github.io/zubra-ui/r/file-drop.json https://zubra-js.github.io/zubra-ui/r/code-input.json https://zubra-js.github.io/zubra-ui/r/date-field.json https://zubra-js.github.io/zubra-ui/r/hero-section.json https://zubra-js.github.io/zubra-ui/r/feature-grid.json https://zubra-js.github.io/zubra-ui/r/testimonial-card.json https://zubra-js.github.io/zubra-ui/r/faq-list.json https://zubra-js.github.io/zubra-ui/r/site-footer.json https://zubra-js.github.io/zubra-ui/r/newsletter-signup.json https://zubra-js.github.io/zubra-ui/r/logo-cloud.json https://zubra-js.github.io/zubra-ui/r/marquee-strip.json https://zubra-js.github.io/zubra-ui/r/number-ticker.json https://zubra-js.github.io/zubra-ui/r/reveal-on-scroll.json https://zubra-js.github.io/zubra-ui/r/shimmer-button.json https://zubra-js.github.io/zubra-ui/r/shine-border.json https://zubra-js.github.io/zubra-ui/r/spotlight-card.json https://zubra-js.github.io/zubra-ui/r/tilt-card.json https://zubra-js.github.io/zubra-ui/r/typing-text.json https://zubra-js.github.io/zubra-ui/r/word-rotate.json

The registry's index is r/registry.json, and llms.txt describes every component for AI tools.

  • accordion-panelA section that opens and closes, on the native <details>: the browser does the keyboard (Enter and Space on the heading), the find-in-page opening and the announcements.
  • action-buttonA button in six variants and three sizes, on a native <button> (or <a> with href), so it submits forms, takes type, and works with the keyboard and screen readers as the browser's own.
  • alert-bannerA message in the page: info, success, warning or danger, with an icon, a heading and text.
  • auto-gridA grid with as many equal columns as fit, each at least min wide: four on a wide screen, one on a phone, with no media queries.
  • backdrop-patternA decorative background behind its content: a grid, dots, a soft gradient mesh, film grain, or an aurora.
  • bar-chartValues compared side by side as horizontal bars, longest-to-shortest if sorted.
  • breadcrumb-trailWhere this page sits: a trail of links from the top, ending at the current page (marked aria-current="page", not a link).
  • chat-messageOne message: avatar, author, time, text (with @mentions and links picked out), the message it replies to, and reactions.
  • check-boxA checkbox with a label and an optional description, on a native <input type="checkbox">: it submits value under its name when checked, takes required, and the whole label is the target.
  • choice-cardsPick one of several cards: a radio group.
  • cluster-layoutChildren in a row that wraps onto more lines when there isn't room: buttons, tags, footer links.
  • code-inputA one-time code (from an email or text message), shown as boxes but typed into one native field: phones offer the code from the message (autocomplete="one-time-code"), pasting the whole code works, and Backspace goes back.
  • color-swatchesPick a colour from colors.
  • combo-boxA combobox: type to filter, arrow keys to move, Enter to pick, Escape to close.
  • command-paletteA search box for actions and pages, opened with ⌘K or Ctrl+K (hotkey).
  • content-cardA card: a picture, a heading, text and a footer, each optional.
  • dashboard-shellAn app's frame: a sidebar of sections, a top bar with the page title and a user menu, and the page in the middle.
  • data-tableA table of records you can sort, filter and select from.
  • date-fieldA labelled date on the native <input type="date">: the platform's own calendar on every device, typed entry in the visitor's own date format, min and max, form submission under name and the browser's validation.
  • date-rangeA check-in and check-out date, as one value { start, end } ("YYYY-MM-DD" strings).
  • donut-chartA donut chart of segments ([{ label, value, tone }], tone 0–7), with the total in the middle and a legend.
  • dropdown-menuA menu of actions behind a button, on the platform's popover: the browser puts it in the top layer and closes it on Escape or a click outside.
  • empty-stateWhat a list or page shows when there's nothing in it yet: a heading that says what's missing, a line on what it's for, and the action that fills it.
  • faq-listFrequently asked questions, each opening to its answer, on native <details>: the browser does the keyboard, find-in-page opens the right answer, and with single only one is open at a time.
  • feature-gridWhat a product does, as a grid of short features: an icon or emoji, a title and a line each.
  • file-dropA place to drop files, or click to choose them, on a native <input type="file">, so the chosen files submit with the form under name and the keyboard opens the picker as usual.
  • flip-cardA card with two faces that flips in 3D.
  • hero-sectionThe top of a landing page: a short eyebrow line, the headline, a sentence under it, the main actions, and a picture or demo beside (or under) it.
  • image-galleryA photo gallery: a masonry grid in reading order and a lightbox with previous and next (arrow keys too).
  • kanban-columnA board column: a heading with a count and an optional work-in-progress limit, its cards (the default slot) and a drop zone for cards dragged from anywhere on the board.
  • line-chartA price chart: an area under a line, with the high, low and a crosshair that follows the pointer and shows the value under it.
  • loading-spinnerSomething is loading.
  • logo-cloud"Trusted by": a row of logos, muted so they don't shout, coming to full colour on hover.
  • marquee-stripA strip that scrolls its content sideways without end, for logos or testimonials.
  • masonry-gridA masonry layout for any items of different heights (cards, notes, photos): packed into columns as wide as column allows, while the order stays the reading order, so Tab, screen readers and search see the items left to right, top to bottom, as written.
  • message-composerWriting a message: Enter sends, Shift+Enter adds a line, the box grows with the text, an emoji menu inserts at the caret, and a message being replied to shows above.
  • modal-dialogA modal dialog on the native <dialog>: the page behind is inert, focus moves into the dialog and back to where it was, and Escape, the close button or a click on the backdrop closes it.
  • money-inputAn amount of money.
  • nav-barThe bar across the top of a site: the brand, the main links, and actions such as Sign in.
  • newsletter-signupAn email signup: a heading, a line on what people get, one email field and a button.
  • number-tickerA number that counts to value when it scrolls into view, and on from there when value changes: for stats and dashboards.
  • page-navPagination: previous and next, the first and last page, and the pages around the current one, with gaps shown as "…".
  • popover-panelA button that opens a small panel beside it: filters, a share menu, a colour picker, a few settings.
  • pricing-blockPricing plans side by side, with a monthly or yearly switch, a featured plan, and what each includes.
  • progress-barHow far along something is: an upload, a setup checklist, a quota.
  • progress-ringA ring that fills to value of max, with what's in the middle from the default slot (the percentage if empty).
  • quantity-stepperA number with − and + buttons, between min and max.
  • radio-groupA set of options where one is chosen, on native radio buttons in a <fieldset>: arrow keys move between them, the choice submits under name, and required validates.
  • range-sliderPick a number by dragging, on a native <input type="range">: arrow keys, Page Up and Down, Home and End work as the browser's own, and it submits under name.
  • reel-layoutA row that scrolls sideways: cards, photos, episodes.
  • reveal-on-scrollContent that animates into place the first time it scrolls into view: fade, rise, blur, scale or slide (effect), each child after the last with stagger.
  • segmented-controlA row of mutually exclusive options.
  • select-fieldA labelled dropdown on a native <select>: the platform's own picker on every device, keyboard typeahead, autofill, and form submission under name.
  • settings-blockAn account settings page: profile, notification switches, light or dark appearance, and a delete that asks first.
  • shimmer-buttonA primary button with a band of light sweeping across it, for the one action that should draw the eye.
  • shine-borderA frame with a beam of light travelling around its border, in the theme's chart colours, for the plan or feature you want noticed.
  • side-sheetA panel that slides in from the edge of the screen (side: right, left or bottom), on the native <dialog>: the page behind is inert, focus moves in and back, and Escape, the close button or a click outside closes it.
  • sidebar-layoutA sidebar beside the main content that moves above it when the content would get too narrow (content-min), with no media queries, so it works in any container.
  • signin-blockA sign-in form: email, password with show and hide, keep me signed in, reset and sign-up links, and an error that's announced.
  • site-footerThe bottom of a site: the brand and a line about it, columns of links, and the small print (copyright, legal links).
  • skeleton-blockA grey placeholder in the shape of content that's on its way, so the page doesn't jump when it arrives.
  • spark-lineA small line of recent values, green when it ends higher than it started, red when lower.
  • spotlight-cardA card lit by a soft spotlight that follows the pointer, in the theme's primary colour at strength.
  • stack-layoutChildren one above the other with the same gap between them: the vertical rhythm of a page, a form or a card.
  • star-ratingA star rating that is a form control: it submits its value under its name, is invalid while required and unset, and goes back to 0 when its form resets.
  • stat-cardOne number that matters, with what it is and how it changed: revenue this month, active users, open tickets.
  • status-badgeA small label for a status, a count or a category.
  • step-indicatorWhere a multi-step flow is: steps done (which can be revisited), the current one, and those ahead.
  • streak-gridA habit's last weeks as a grid of days (a column per week, Monday at the top), shaded by how much of the goal was done.
  • switcher-layoutChildren side by side in equal columns while the container is wide enough, and stacked one above the other below threshold (the container's width, not the screen's, so it works in a sidebar as well as the page).
  • tab-listTabs: a tab list and the panels it switches between.
  • tag-inputA list of tags you type: Enter or comma adds one, Backspace in the empty field removes the last, × removes any.
  • testimonial-cardA quote from a customer, with who said it: their name, their role or company (byline), and their picture (or initials).
  • text-fieldA labelled text field on a native <input> (or <textarea> with rows), so it submits under its name, autofills, and validates as the browser's own (required, type="email", minlength, pattern).
  • tilt-cardA card that tilts toward the pointer in 3D (up to max degrees) and springs back flat, with an optional glare.
  • toast-regionShort notifications that appear in a corner and go away by themselves.
  • toggle-switchAn on/off switch with a label and a description.
  • tool-tipA short description shown when its trigger is hovered or focused: the trigger is the slotted element, and the tip describes it (aria-describedby), so a screen reader reads it with the trigger's name.
  • typing-textText typed out a letter at a time with a blinking caret, starting when it scrolls into view.
  • user-avatarA person's picture, or their initials when there's no picture or it fails to load.
  • word-rotateOne word at a time from words, each sliding out as the next slides in every interval ms.
Theme

Every component reads shadcn/ui's CSS variables, so any shadcn theme works. Pick a look or a colour, or paste a theme's CSS.

Look: colours, fonts, corners and motion

Accent colour