Skip to content
Back to skills

Building Components

ASecurity

Guide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, setting up design tokens, publishing to npm/registry, or writing component documentation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 15, 2026
ai-agentstypescriptapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned October 15, 2026

npx -y skills add trancethehuman/template-next-agent --skill building-components --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Building Components?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Building Components
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/trancethehuman-building-components/badge)](https://www.skillsdirectory.com/skills/trancethehuman-building-components)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: building-components
description: Guide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, setting up design tokens, publishing to npm/registry, or writing component documentation.
---

# Building Components

## When to use this skill

Use when the user is:

- Building new UI components (primitives, components, blocks, templates)
- Implementing accessibility features (ARIA, keyboard navigation, focus management)
- Creating composable component APIs (slots, render props, controlled/uncontrolled state)
- Setting up design tokens and theming systems
- Publishing components to npm or a registry
- Writing component documentation
- Implementing polymorphism or as-child patterns
- Working with data attributes for styling/state

## References

- [definitions.mdx](./references/definitions.mdx) - Artifact taxonomy (primitives, components, blocks, templates)
- [principles.mdx](./references/principles.mdx) - Core principles for component design
- [accessibility.mdx](./references/accessibility.mdx) - ARIA, keyboard navigation, WCAG compliance
- [composition.mdx](./references/composition.mdx) - Composable component patterns
- [as-child.mdx](./references/as-child.mdx) - The as-child pattern for element polymorphism
- [polymorphism.mdx](./references/polymorphism.mdx) - Polymorphic component patterns
- [types.mdx](./references/types.mdx) - TypeScript typing patterns for components
- [state.mdx](./references/state.mdx) - Controlled vs uncontrolled state management
- [data-attributes.mdx](./references/data-attributes.mdx) - Using data attributes for styling and state
- [design-tokens.mdx](./references/design-tokens.mdx) - Design token systems and theming
- [styling.mdx](./references/styling.mdx) - Component styling approaches
- [registry.mdx](./references/registry.mdx) - shadcn-style registry distribution
- [npm.mdx](./references/npm.mdx) - Publishing components to npm
- [marketplaces.mdx](./references/marketplaces.mdx) - Component marketplace distribution
- [docs.mdx](./references/docs.mdx) - Writing component documentation

Files in this skill

  • SKILL.md2.1 KB
  • references/accessibility.mdx18.4 KB
  • references/as-child.mdx7 KB
  • references/composition.mdx7.1 KB
  • references/data-attributes.mdx11.7 KB
  • references/definitions.mdx10.4 KB
  • references/design-tokens.mdx2.2 KB
  • references/docs.mdx6.2 KB
  • references/marketplaces.mdx5.8 KB
  • references/npm.mdx5.3 KB
  • references/polymorphism.mdx13.6 KB
  • references/principles.mdx4.1 KB
  • references/registry.mdx6.4 KB
  • references/state.mdx3.2 KB
  • references/styling.mdx8.8 KB
  • references/types.mdx5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.