Commit f2a02190 by G

card need to be wrappable around other components

parent f76cf185
......@@ -3,9 +3,12 @@ import type { Theme } from "@themes/Theme";
import { cardVariants } from "@themes/Variants";
import Box from "./bases/Box";
const Card = createRestyleComponent<VariantProps<Theme, "cardVariants"> & BoxProps<Theme>, Theme>(
[cardVariants],
Box,
);
const Card = createRestyleComponent<
VariantProps<Theme, "cardVariants"> &
BoxProps<Theme> & {
children: React.ReactNode;
},
Theme
>([cardVariants], Box);
export default Card;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment