frontend-components

Comprehensive guidance for building user interface components in the Mossback web client. Covers React components, props, state, hooks, context, forms, inputs, buttons, tables, modals, dialogs, toasts

SKILL.md

GitHub

Frontend Components

Rules

  • Shared components live in web/src/ui. Check there before building a new control.
  • Styling is Tailwind with the tokens in web/tailwind.config.ts. No ad hoc hex values.
  • A component that fetches is a Server Component; interactive leaves are Client Components.
  • Every interactive control has an accessible name.