UNPKG

@heroui/card

Version:

Card is a container for text, photos, and actions in the context of a single subject.

15 lines (12 loc) 342 B
"use client"; // src/card-context.ts import { createContext } from "@heroui/react-utils"; var [CardProvider, useCardContext] = createContext({ name: "CardContext", strict: true, errorMessage: "useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />" }); export { CardProvider, useCardContext };