Skip to content

Instantly share code, notes, and snippets.

@maapteh
Last active January 27, 2022 08:26
Show Gist options
  • Save maapteh/c314bc101ce40e7c37f85667743fde49 to your computer and use it in GitHub Desktop.
Save maapteh/c314bc101ce40e7c37f85667743fde49 to your computer and use it in GitHub Desktop.
simple component
type ComponentProps = {
isDifficult?: boolean;
} & BoxProps;
export function Component({
isDifficult,
...boxProps
}: ComponentProps) {
return (
<Box
{...boxProps}
>
{isDifficult ? 'Difficult' : 'Simple'} Component
</Box>
);
}
<Component p={{ base: 4, md: 8 }} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment