Componentdata1.25 KB gzipZero dependencies

Recipe Card

Recipe card: ingredients/steps tabs, time and servings.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add recipe-card

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { RecipeCard } from "@/components/ui/recipe-card"; <RecipeCard />

Source code

recipe-card.tsx + 1 helper

Zero 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 />
PropTypeDescription
titlestringPrimary heading or title text. (Default: "")
minutesnumberdakika
servingsnumberConfigures servings. (Default: 0)
ingredientsRecipeIngredient[]Configures ingredients. (Default: [])
stepsstring[]Configures steps. (Default: [])