import { Card } from '@wigxel/react-components/lib/cards';
const App = () => {
return (
<Card
clickable={true} // Changes the cursor to a pointer
static={true} // Removes shadow effect
shadow={false} // Toggles shadow
/>
)
}
Card components are extensive. So you could create mutliple card styles from the base component, utilizing the power of StyledComponents. See below.
import styled from 'styled-components';
import { Card } from '@wigxel/react-components/lib/cards';
export const InfoCard = styled(Card)`
background-color: indigo;
`
export const ActiveCard = styled(Card)`
background-color: green;
text-white;
border-radius: 22px;
`
export default { ActiveCard, InfoCard }
Add and tweak the Properties.
{
...,
card: {
bgColor: "#fff",
dividerColor: "whitesmoke",
}
}