Skip to content

Commit 39f04a1

Browse files
committed
Actually accept className prop
1 parent df63f2e commit 39f04a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

website/src/components/mesh-hero.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ import Image from 'next/image';
22
import {
33
CallToAction,
44
CheckIcon,
5+
cn,
56
DecorationIsolation,
67
GitHubIcon,
78
Heading,
89
MeshIcon,
910
} from '@theguild/components';
10-
import { HeroContainer, HeroFeatures, HeroLinks } from './hero';
11+
import { HeroContainer, HeroContainerProps, HeroFeatures, HeroLinks } from './hero';
1112
import { InstallButton } from './install-button';
1213
import meshHeroBadge from './mesh-hero-badge.svg';
1314

14-
export function MeshHero() {
15+
export function MeshHero(props: HeroContainerProps) {
1516
return (
16-
<HeroContainer className="mx-4 max-sm:mt-2 md:mx-6">
17+
<HeroContainer {...props} className={cn('mx-4 max-sm:mt-2 md:mx-6', props.className)}>
1718
<MeshDecorations />
1819
<Image priority src={meshHeroBadge} alt="" width="96" height="96" />
1920
<Heading as="h1" size="xl" className="mx-auto max-w-3xl text-balance text-center">

0 commit comments

Comments
 (0)