Components
StaticCard
The `StaticCard` component can be used to create a card that does not respond to user interactions. It can be rendered as any HTML element by specifying the `as` prop.
Code examples
<Flex> <StaticCard padding={3} border borderWidth={1}> Simple static card </StaticCard> </Flex>
Guidelines
The StaticCard component serves as a versatile display container for presenting static content in a visually consistent and engaging manner. It is ideal for showcasing important information, highlighting features, or displaying standalone content blocks within the user interface.
Props
StaticCard uses props from Box and you are able to tweak these as you wish.
Code
<StaticCard />
import { StaticCard } from "@vygruppen/spor-react";
Props
Name | Type | Required? | Description |
|---|---|---|---|
colorPalette | string | "white" | "grey" | "blue" | "darkBlue" | "green" | "darkGreen" | "teal" | "yellow" | "darkYellow" | "orange" | "red" - defaults to white |