input-usage

Guide Input atom usage for sizing, variants, and token-first validation in forms.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Input atom serves as a low-level building block for forms, and this Skill guides developers to use it with proper size, variant, embedded button spacing, and token-first validation styling to ensure consistent UI experiences.

Core Features & Use Cases

  • Precise control over Input sizing, variants, and embedded action spacing for form fields.
  • Token-first validation styling that leverages design tokens to maintain visual consistency.
  • Composable usage with higher-level molecules like FormInput when labels, helpers, or validation messages are needed.

Quick Start

Import the Input atom from @techsio/ui-kit and render it with name, type, and size to begin using it in a form.

Frequently Asked Questions about input-usage

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

FAQPage Schema
How do I apply consistent sizing and validation styling to React form inputs?

Achieve consistent React form input styling by using an Input atom that leverages design tokens for sizing, variant states, and validation. This enforces visual consistency across all form fields by applying token-first styling rules.

What is the best way to manage input variants and embedded button spacing in a UI kit?

Manage input variants and embedded button spacing by configuring the Input atom at the building block level. It provides precise control over layout spacing and variant states to maintain UI consistency within your forms.

Do I need a specific UI kit library to use token-first validation in TypeScript forms?

Yes, you need the @techsio/ui-kit core library to implement token-first validation in TypeScript forms. The Input atom requires this dependency to properly reference sources and enforce design-token based styling.

Can I use a basic input atom with higher-level form components that need labels and helper text?

Yes, you can compose the basic Input atom with higher-level molecules like FormInput. This allows you to add labels, helper text, and validation messages while maintaining the underlying token-first styling and sizing controls.

How does design token validation work for form inputs in React?

Design token validation works by mapping input variant states directly to predefined UI tokens. This approach maintains visual consistency across form inputs by ensuring all validation styling references a centralized token system rather than hardcoded values.