WagerSelectionCard / Dev
Install
Import
Props
WagerSelectionCard
Prop | Type & Description |
---|---|
id | string Used for the id for the card and internally as a prefix for the brand part, children part and the status part. |
brand | LogoBrandKey Select the brand logo to use. Usage:
|
subtitle | ReactNode Supplementary (to the logo) title, typically used to denote the day of the week for the game. For example "Joker Lørag." |
statusIsInteractive | boolean If set to true the status will not be hidden from assistive technologies Use this if you need to use button or input elements in the status part. This prevent touch VoiceOver to select text that should already be read out based on the ``accessibleLabel. Remember: The |
noFadeOutDescription | boolean Don't fade out overflowing description (in `children) Useful for when you use custom status/decorator that doesn't have a white background. |
decorator | boolean | ReactElement<any, string | JSXElementConstructor<any>> | ((card: ReactNode) => Element) Decorate/wrap the card inside a given container. Makes it easier to selectively wrap the card inside another for showing statuses or make the card expandable. Typically used with the
|
tw | TwGroupKeys Tailwind overrides |
render | (props: CardRenderProps) => Element Render-method for choosing witch tag to render EXAMPLE:
Note that OTHER EXAMPLES:
|
children | ReactNode Can be any valid react node. The card does not apply any style to its contents. |