ui-form-section

Implements React form section, master-detail layout, and side panel drawer components for ERP interfaces.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/Aurelian1974/ERPEnterprise --skill ui-form-section-aurelian1974
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ui-form-section
Source: https://github.com/Aurelian1974/ERPEnterprise/tree/main/.github/skills/ui-form-section
Command: npx skills add https://github.com/Aurelian1974/ERPEnterprise --skill ui-form-section-aurelian1974

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building consistent ERP form layouts requires repeatedly writing the same grid wrappers, master-detail splits, and edit drawers, leading to inconsistent spacing and duplicated code across pages. ## Core Features & Use Cases - FormSection: A wrapper component that renders a titled form section with optional description, a bottom border separator, and a responsive grid supporting 1, 2, 3, or 4 columns. - SplitLayout: A master-detail layout with a fixed-width scrollable list panel on the left and a flexible detail panel on the right, ideal for invoice or record browsing pages. - SidePanel: A right-side drawer built on a Sheet component with configurable sizes (400px, 600px, 800px), a scrollable content area, and a footer slot for Save/Cancel actions. - Use Case: When building an invoice management page, use SplitLayout to show the invoice list beside the selected invoice detail, and open a SidePanel with a form for quick editing without leaving the page. ## Quick Start Ask the AI to create an invoice page using FormSection for the form fields, SplitLayout for the list-detail view, and SidePanel for the quick edit drawer.

Frequently Asked Questions about ui-form-section

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

FAQPage Schema
How do I create a responsive form grid layout in React with Tailwind?▼

Use a wrapper component like FormSection that maps a cols prop to Tailwind grid classes such as grid-cols-1 sm:grid-cols-2 lg:grid-cols-3. This gives you consistent responsive behavior across 1 to 4 column layouts without repeating class strings.

How to build a master-detail layout in React?▼

Build a flex container with a fixed-width scrollable master panel separated by a border from a flexible detail panel. Track the selected item ID in state and render the detail component conditionally, showing a placeholder when nothing is selected.

How do I add a side drawer for editing in a React app?▼

Use a Sheet component rendered on the right side with a controlled open state, a header for title and description, a scrollable content area, and a footer with Save and Cancel buttons. Width can be configured via size classes like w-[400px] or w-[800px].

Does SplitLayout support responsive mobile views?▼

The provided SplitLayout uses a fixed pixel width for the master panel and does not include mobile collapse behavior. For small screens you would need to add conditional rendering or a breakpoint-based toggle yourself.

What are the limitations of using a Sheet drawer for forms?▼

Drawer panels limit horizontal space, so wide forms with many columns become cramped even at the 800px size. For complex multi-section forms, a dedicated full-page edit route is usually a better fit than a side panel.