Componentdata1.25 KB gzipZero dependencies
Recipe Card
Recipe card: ingredients/steps tabs, time and servings.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add recipe-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { RecipeCard } from "@/components/ui/recipe-card"; <RecipeCard />Source code
recipe-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxrecipe-card.tsx81 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface RecipeIngredient { id: string; amount: string; name: string;} export interface RecipeCardProps extends React.HTMLAttributes<HTMLDivElement> { title: string; /** dakika */ minutes: number; servings: number; ingredients: RecipeIngredient[]; steps: string[];Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { RecipeCard } from "@/components/ui/recipe-card"; <RecipeCard />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. (Default: "") |
| minutes | number | dakika |
| servings | number | Configures servings. (Default: 0) |
| ingredients | RecipeIngredient[] | Configures ingredients. (Default: []) |
| steps | string[] | Configures steps. (Default: []) |