Custom Icons
Custom SVG icon components for FoodEase apps, ready to use in your UI.
Overview
This page documents the custom SVG icon components available in the FoodEase registry. These icons are React components, designed for easy use and consistent styling across your app.
Each icon is a .tsx file exporting a React component. They accept all standard SVG props and a className prop for styling (e.g. with Tailwind CSS).
Available Icons
| Icon Name | Preview | Usage Example |
|---|---|---|
CardIcon | import CardIcon from "@/icons/CardIcon" | |
CashDrawerIcon | import CashDrawerIcon from "@/icons/CashDrawerIcon" | |
CashIcon | import CashIcon from "@/icons/CashIcon" | |
ChowdeckIcon | import ChowdeckIcon from "@/icons/ChowdeckIcon" | |
MultiChannelIcon | import MultiChannelIcon from "@/icons/MultiChannelIcon" | |
QSIcon | import QSIcon from "@/icons/QSIcon" | |
TransferIcon | import TransferIcon from "@/icons/TransferIcon" |
Installation
To get started using these icons,
npx shadcn@latest add https://foodease-dev-registry.cap.reachcinema.io/r/v1/custom-icons.jsonHow to Use
- Import the icon:
import CardIcon from "@/icons/CardIcon"; - Add to your JSX:
You can use any Tailwind or custom class for size and color.<CardIcon className="w-6 h-6 text-primary" />
Adding More Icons
To add your own icons, create a new .tsx file in the same folder, following the same pattern. Use the className prop for styling flexibility.
Icon Guidelines
- All icons should be SVG, React components, and accept
classNameand SVG props. - Use
currentColorfor fill/stroke so icons inherit text color. - Default size:
w-5 h-5(can be overridden via className). - Keep SVGs optimized and minimal for performance.
Example: Custom Icon Usage
import CashDrawerIcon from "@/icons/CashDrawerIcon";
export default function Example() {
return (
<button className="flex items-center gap-2">
<CashDrawerIcon className="w-6 h-6 text-green-600" />
Open Drawer
</button>
);
}