Skip to content

Commit

Permalink
feat(hero): image classname
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowFatih committed Oct 17, 2023
1 parent 341b749 commit af3cd8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/molecules/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface HeroProps {
backgroundSize?: 'auto' | 'cover' | 'contain' | string;
backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat' | string;
backgroundClassName?: string;
imageClassName?: string;
position?: ForeGroundPosition;
centerPositionOnMobile?: boolean;
height?: string;
Expand All @@ -34,6 +35,7 @@ export const Hero: React.FC<HeroProps> = ({
backgroundSize,
backgroundRepeat,
backgroundClassName,
imageClassName,
position,
centerPositionOnMobile,
height = '600px',
Expand All @@ -53,7 +55,7 @@ export const Hero: React.FC<HeroProps> = ({
}}
/>
<div
className={classNames('relative overflow-hidden')}
className={classNames('relative overflow-hidden', imageClassName)}
style={{
height: height
}}
Expand Down

0 comments on commit af3cd8c

Please sign in to comment.