Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

hi i have a problem in card component #273

Answered by noobinthisgame
koushiar asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Kourosh-MD :)
you can pass the props of the component you are using to build the custom card component like this:

export const Card : FunctionComponent<BoxProps> = ({children, ...props}: BoxProps) => {
   return <Box {...props}>{children}</Box>
}

This way you can use all BoxProps on your custom card component and they will be passed down.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nikolovlazar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants