select-usage

Render labeled single or multiple selects with Zag.js in React apps.

2|Updated Dec 2, 2024
One-click install
npx skills add https://github.com/TechsioCZ/new-engine --skill select-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: select-usage
Source: https://github.com/TechsioCZ/new-engine/tree/main/libs/ui/skills/select-usage
Command: npx skills add https://github.com/TechsioCZ/new-engine --skill select-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a consistent, reusable Select UI in React projects using the @techsio/ui-kit and Zag.js, eliminating ad-hoc implementations and ensuring accessibility-friendly structure.

Core Features & Use Cases

  • Keeps the Select anatomy intact with Label, Control, Trigger, ValueText, Positioner, Content, Item, ItemText, and ItemIndicator.
  • Supports both single and multiple selections via array-based values and common props like size and validateStatus.
  • Use Case: quickly wire up labeled selects in forms and dashboards with predictable behavior and visuals.

Quick Start

Create a basic Select using the library, provide items, and render it with a label and trigger for user selection.

Frequently Asked Questions about select-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement an accessible React select dropdown using Zag.js?

Implement an accessible React select dropdown using Zag.js by leveraging the @techsio/ui-kit core Select API. It maintains a complete anatomy of Label, Trigger, ValueText, Positioner, and Item components to ensure predictable behavior.

Can I use this Select component for multiple selection in a React form?

Yes, you can use this Select component for multiple selection in a React form. It supports both single and multiple selections via array-based values, alongside props like size and validateStatus for proper form integration.

What props do I need to render a labeled select with validation state?

To render a labeled select with validation state, you need to provide props such as items, size, and validateStatus. The component uses the core Select API from @techsio/ui-kit and Zag.js integration to render correctly.

Does this dropdown UI kit require any external dependencies to function?

Yes, this dropdown UI kit requires the core Select API from @techsio/ui-kit and Zag.js integration to function correctly. It is specifically designed for React projects to eliminate ad-hoc select implementations.

What is the best way to standardize dropdown UI across React dashboards?

The best way to standardize dropdown UI across React dashboards is using a component library like @techsio/ui-kit with Zag.js. It provides a consistent Select anatomy, eliminating ad-hoc implementations and ensuring an accessible structure.