API reference
blocks/game-share-card
Import
Section titled “Import”import * as api from "@fungi.computer/caps/blocks/game-share-card";Exports
Section titled “Exports”| 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”type GameShareCardProps = HTMLAttributes<HTMLDivElement> & object;Presentation for a published game; fetching and navigation stay with the host.
Type Declaration
Section titled “Type Declaration”| 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”const GameShareCard: ForwardRefExoticComponent< HTMLAttributes<HTMLDivElement> & object & RefAttributes<HTMLDivElement>>;Compose a game’s cover, share details and play action in the enclosing theme.