Toolverse
All skills

shadcn-svelte-components

by exceptionless

UI components with shadcn-svelte and bits-ui. Component patterns, trigger snippets,\ndialog handling, and accessibility.\nKeywords: shadcn-svelte, bits-ui, Button, Dialog, Sheet, Popover, DropdownMenu,\nTooltip, Form, Input, Select, child snippet, trigger pattern, cn utility

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Frontend
Views
34

About this skill

UI components with shadcn-svelte and bits-ui. Component patterns, trigger snippets,\ndialog handling, and accessibility.\nKeywords: shadcn-svelte, bits-ui, Button, Dialog, Sheet, Popover, DropdownMenu,\nTooltip, Form, Input, Select, child snippet, trigger pattern, cn utility

How to use

  1. Zapoznaj się z dokumentacją shadcn-svelte na stronie shadcn-svelte.com oraz użyj kontekstu context7 dla referencji API dostępnych komponentów.

  2. Importuj komponenty używając wzorca namespace — na przykład import * as Dialog from '$comp/ui/dialog' dla dialogów lub import { Button } from '$comp/ui/button' dla przycisków. Taki sposób importu zapewnia czystą strukturę kodu.

  3. Przy łączeniu komponentów trigger (takich jak Tooltip czy DropdownMenu) z niestandardowymi elementami jak Button, zawsze używaj wzorca child snippet. Opakowuj element wewnątrz bloku {#snippet child({ props })} i przekazuj props do komponentu za pomocą {...props}.

  4. Wzorzec child snippet gwarantuje pojedynczy punkt fokusa, prawidłową delegację atrybutów ARIA oraz dostępność z klawiatury. Unikaj umieszczania komponentów bezpośrednio wewnątrz Trigger bez snippetu — powoduje to podwójne tabulatory i problemy z dostępnością.

  5. Komponenty dostępne w zestawie to między innymi Button, Dialog, Sheet, Popover, DropdownMenu, Tooltip, Form, Input i Select. Wybierz odpowiedni komponent dla swojego przypadku użycia i dostosuj go za pomocą dostępnych wariantów i rozmiarów.

  6. Użyj narzędzia cn do łączenia klas CSS, jeśli potrzebujesz dodatkowych stylów. Wszystkie komponenty są już stylizowane, ale możesz je rozszerzać zgodnie z potrzebami projektu.

Related skills

zustand

by lobehub

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

Frontend
36126

frontend-slides

by sickn33

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual

Frontend
65135

browser-automation

by browserbase

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include \

Frontend
21175

shadcn-ui-setup

by maneeshanif

Install and configure Shadcn/ui component library with Radix UI primitives, Aceternity UI effects, set up components, and manage the component registry. Use when adding Shadcn/ui to a Next.js project or installing specific UI components for Phase 2.

Frontend
23167

senior-fullstack

by davila7

Comprehensive fullstack development skill for building complete web applications with React, Next.js, Node.js, GraphQL, and PostgreSQL. Includes project scaffolding, code quality analysis, architecture patterns, and complete tech stack guidance. Use when building new projects,

Frontend
2896

bubbletea

by hmans

Browse Bubbletea TUI framework documentation and examples. Use when working with Bubbletea components, models, commands, or building terminal user interfaces in Go.

Frontend
2158