Computing for good
Atlanta Food Consortium/Feature Docs

UI Components

Overview of the shared UI components available across the platform.

Overview

The src/components/ui/ directory contains shared, reusable UI primitives built on top of shadcn/ui. These components are used throughout every feature area of the platform.

Available components

ComponentFileDescription
Toastuse-toast hook + ToasterNon-blocking notification system with three variants.
Buttonbutton.tsxPrimary action element with size and variant props.
Badgebadge.tsxInline status indicator.
Cardcard.tsxContent container with optional header and footer.
Dialogdialog.tsxModal overlay for confirmations and forms.
Selectselect.tsxDropdown select with accessible keyboard navigation.
Inputinput.tsxStyled text input.
Textareatextarea.tsxMulti-line text input.
Skeletonskeleton.tsxAnimated loading placeholder.

Toast

The toast notification system is the most commonly used UI component. See the Toast page for full API documentation.

shadcn/ui

All components follow shadcn/ui conventions - unstyled Radix UI primitives styled with Tailwind. To add a new component run:

npx shadcn@latest add <component-name>