CharityEntrance
Install
yarn add @ntds/charityImport
import { CharityEntrance } from '@ntds/charity';Props
| Prop | Type | Default | Description |
|---|---|---|---|
image? | { src: string; alt: string; } | — | Placed at the top of the card image src url and alt-text must be provided |
children | ReactNode | — | child elements of CharityEntry |
footer? | ReactNode | — | Placed after the content at the bottom. Will always be visible. Typically this place is used to show logo and/or call to action buttons. |
link? | { url: string; label: string; } | — | Entrance card link |
linkComponent? | ComponentType<LinkComponent> | — | The component to use for rendering links. Typically, this is a React Router Link component and only needs to be set in OmniWeb since the links are SPA-links inside OmniWeb. If not defined (default), the component will render a regular anchor tag. |