Skip to content
API reference

blocks/game-share-card

Import
import * as api from "@fungi.computer/caps/blocks/game-share-card";
Kind Export Description
type alias GameShareCardProps Presentation for a published game; fetching and navigation stay with the host.
constant GameShareCard Compose a game’s cover, share details and play action in the enclosing theme.

GameShareCardPropstype alias

Section titled “GameShareCardProps”
Signature
type GameShareCardProps = HTMLAttributes<HTMLDivElement> & object;

Presentation for a published game; fetching and navigation stay with the host.

Name Type Description
heading ReactNode -
eyebrow? ReactNode -
cover? ReactNode -
action ReactElement A host-owned link or button, presented as the primary play action.

GameShareCardconstant

Section titled “GameShareCard”
Signature
const GameShareCard: ForwardRefExoticComponent<
HTMLAttributes<HTMLDivElement> & object & RefAttributes<HTMLDivElement>
>;

Compose a game’s cover, share details and play action in the enclosing theme.