HitotsuCardImagefunction
A card as a whole SVG, sized by its parent or its own width: <HitotsuCardImage card="R70" width={80} />.
Import it
import { HitotsuCardImage } from "@johnmorrisdotca/hitotsu/react";
Definition
function HitotsuCardImage({ card, called, ...svg }: { card: HitotsuCard | null; called?: HitotsuColour; } & SVGAttributes<SVGSVGElement>): React.JSX.Element
Parameters
| Name | Type | Description |
|---|---|---|
options | { card: HitotsuCard | null; called?: HitotsuColour; } & SVGAttributes<SVGSVGElement> | Native table, rules, sound or drawing settings; omitted fields retain their defaults. |
Returns
React.JSX.Element
A React SVG element containing the complete card drawing.
Examples
import { HitotsuCardImage } from "@johnmorrisdotca/hitotsu/react";
import { createElement } from "react";
console.log(createElement(HitotsuCardImage, { card: "R70", width: 80 }).props.width);80What it prints (run when this page was built)