search-form-usage

Create accessible React search forms with labeled input, controls, and submit actions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building accessible, consistent search interfaces from scratch is time-consuming and error-prone. A reusable SearchForm component standardizes labeling, input, submission, clear actions, and optional icons, speeding development while ensuring UX consistency.

Core Features & Use Cases

  • Label, Control, Input, Button, ClearButton primitives work together to provide a complete search UI.
  • Supports both controlled and uncontrolled value management and optional search icon configuration.
  • Use Case: drop-in a search bar on product lists, dashboards, or admin panels with predictable behavior and accessible structure.

Quick Start

Instantiate a SearchForm in your app to manage labeled search input with optional icon and submit behavior.

Frequently Asked Questions about search-form-usage

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

FAQPage Schema
How do I build an accessible search form in React?

An accessible search form in React requires properly labeled search inputs, submission controls, and clear actions. Using a reusable component standardizes these UI primitives to ensure consistent UX and accessibility across your application.

What is the best way to add a search bar with a clear button to a React dashboard?

Adding a search bar with a clear button to a React dashboard is best achieved with a reusable SearchForm component. It provides built-in Input, Button, and ClearButton primitives to handle submission and clearing actions predictably.

Can I use a React search component for both controlled and uncontrolled value management?

Yes, a React search component can support both controlled and uncontrolled value management. This allows you to either manage the search input state externally or let the component handle its own internal state during submission.

Does the accessible search form component support custom icon configurations?

Yes, the accessible search form component supports optional icon configurations. You can customize the search interface by adding icons alongside the labeled input, submit button, and clear button primitives.

What primitives do I need to implement a consistent search interface in a UI kit?

To implement a consistent search interface in a UI kit, you need Label, Control, Input, Button, and ClearButton primitives. These parts work together to expose a complete API for managing size, value handling, and onSubmit behavior.

When should I use a pre-built search form component instead of building one from scratch?

You should use a pre-built search form component when you need to drop a search bar quickly into product lists or admin panels. It prevents the errors and time loss associated with building accessible, consistent search interfaces from scratch.