We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93990ff commit 1c669ecCopy full SHA for 1c669ec
src/components/Card/index.tsx
@@ -1,8 +1,8 @@
1
import React, { ReactNode } from "react"
2
-import { Flex, Heading, Text } from "@chakra-ui/react"
+import { ChakraProps, Flex, Heading, Text } from "@chakra-ui/react"
3
import Emoji from "../Emoji"
4
5
-export interface IProps {
+export interface IProps extends ChakraProps {
6
children?: React.ReactNode
7
emoji?: string
8
title?: ReactNode
@@ -16,6 +16,7 @@ const Card: React.FC<IProps> = ({
16
description,
17
children,
18
className,
19
+ ...props
20
}) => (
21
<Flex
22
direction="column"
@@ -28,6 +29,7 @@ const Card: React.FC<IProps> = ({
28
29
borderColor="lightBorder"
30
p={6}
31
className={className}
32
+ {...props}
33
>
34
<div>
35
{emoji && <Emoji fontSize="5xl" text={emoji} mb={4} />}
0 commit comments