Skip to content
beforesemicolonPublic

Latest commit

 

History

195 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cube

A design system and TypeScript web component library for building accessible, themeable interfaces. Explore interactive components and examples in the Playground, or browse the Cube documentation.

Usage

import '@beforesemicolon/cube'
<cb-button label="Save"></cb-button>

Import the full library, a category such as @beforesemicolon/cube/action, or an individual component such as @beforesemicolon/cube/action/button. For classic browser scripts, load WebComponent first, then Cube's full or category client.

Build with AI

Read the Cube agent skill and the AI quick start. Find the index at node_modules/@beforesemicolon/cube/ai/index.json, or open the version-pinned Cube 1.4.1 index after publication. Change the version in the URL only to match your installed release. The packaged skill includes the offline component guides and local examples for every tag. The index points to individual component records, and custom-elements.json supplies the Custom Elements Manifest. Neither is part of a runtime bundle.

Components

Category Custom elements
Action cb-button-group, cb-button, cb-split-button
Text cb-heading, cb-shortcut
Form cb-calendar, cb-checkbox, cb-code-editor, cb-combobox, cb-css-value-input, cb-date-picker, cb-editable-label, cb-editable-list, cb-field, cb-file-picker, cb-file-queue, cb-json-editor, cb-linked-values, cb-masked-input, cb-number-input, cb-radio-group, cb-radio, cb-range-input, cb-rich-text-editor, cb-rich-text-toolbar, cb-select, cb-stepper, cb-switch, cb-text-input, cb-textarea, cb-time-picker, cb-token-input, cb-unit-input, cb-verification-code
Layout cb-action-bar, cb-box, cb-col, cb-divider, cb-docked-panel, cb-grid, cb-page, cb-panel-header, cb-resizable-panel, cb-row, cb-sidebar, cb-toolbar, cb-workspace
Navigation cb-breadcrumb, cb-link, cb-menu, cb-pagination, cb-progress-steps, cb-segmented-control, cb-tabs
Overlay cb-alert-dialog, cb-bottom-sheet, cb-command-palette, cb-context-menu, cb-drawer, cb-dropdown, cb-hover-card, cb-modal, cb-modal-renderer, cb-popover, cb-tooltip-provider, cb-tooltip
Feedback cb-alert, cb-banner, cb-empty-state, cb-flashbar, cb-progress, cb-skeleton, cb-spinner, cb-status, cb-toast
Data display cb-accordion, cb-avatar, cb-badge, cb-card, cb-code-preview, cb-expandable-section, cb-file-browser, cb-key-value-pairs, cb-layer-tree, cb-list, cb-table, cb-tree
Media cb-audio-player, cb-image, cb-video-player
Charts cb-cartesian-chart, cb-pie-chart
Styling cb-color-picker, cb-color-swatch, cb-gradient-editor
Editor cb-artboard, cb-bezier, cb-device-frame, cb-guide-overlay, cb-marquee-selection, cb-property-group, cb-rulers, cb-selection-overlay, cb-timeline, cb-viewport
Collaboration cb-activity-feed, cb-comment-pin, cb-comment-thread, cb-presence, cb-remote-cursor
Icons cb-icon
Theme cb-theme-provider

Playground

npm ci
npm run storybook

Open the Playground on localhost for live controls and usage examples.

Open What’s new in 1.4 in the Playground sidebar for interactive demos:

  • Project workspace: Scroll under a fixed action bar, add or remove teammates, edit a custom milestone list, and resize or collapse the activity panel.
  • Files and command shortcuts: Compare image previews and file type icons, pick or remove files without uploading them, and try the action dropdown.
  • Typography and choices: Compare body and form text, icon tabs, and the checkbox and radio sizing.

Releases

Used by

Contributors

Languages