{"repo":"bejamas/data-slot","free":true,"listed":false,"github":"https://github.com/bejamas/data-slot","clone":"git clone https://github.com/bejamas/data-slot.git","description":"vanilla JS behavior primitives for accessible components","language":"TypeScript","stars":57,"topics":["accessibility","component-library","design-systems","headless-ui","ui","ui-components","ui-kit","vanilla-js"],"license":"MIT","category":"ui-components","readme_excerpt":"data-slot Headless UI components for vanilla JavaScript. Tiny, accessible, unstyled. Features - Zero dependencies - No npm package dependencies, works everywhere - Tree-shakeable - Import only what you use, keep bundles small - Accessible - WAI-ARIA compliant with keyboard navigation built-in - Small bundles - Packages stay compact and tree-shake cleanly - Framework-agnostic - Works with vanilla JavaScript, no framework required - TypeScript - Full TypeScript support with type definitions included Quick Start Add data-slot attributes to your HTML and initialize with JavaScript: The create() function auto-discovers all tabs in the DOM and binds them. Use the controller to programmatically control the component. Installation Install individual packages as needed: Packages All packages are independently installable. Each package includes its own README with detailed documentation. Package Size Description Documentation ---------------------------- ------ --------------------------- -------------------------------------------- @data-slot/navigation-menu 7.2 KB Dropdown navigation menus README @data-slot/core 5.5 KB Shared utilities README @data-slot/command 4.7 KB Command palette with search README @data-slot/hover-card 2.6 KB Hover/focus preview cards README @data-slot/tabs 2.3 KB Tabbed interfaces, kbd nav README @data-slot/radio-group 2.3 KB Single-select radios, form-ready README @data-slot/tooltip 2.2 KB Hover/focus tooltips README @data-slot/popover 2.0 KB Anchored floating","default_branch":null,"files":null,"tree":[],"storefront":"/r/bejamas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bejamas/data-slot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}