@pagopa/mui-italia
Version:
[Material-UI](https://mui.com/core/) theme inspired by [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).
23 lines (22 loc) • 617 B
TypeScript
import { CTA } from "../../types";
interface HeroTextProps {
title: string;
subtitle?: string | JSX.Element;
ctaPrimary?: CTA;
ctaSecondary?: CTA;
}
interface HeroBasicProps extends HeroTextProps {
inverse?: boolean;
background?: string;
}
interface HeroJustTextProps extends HeroBasicProps {
type: "text";
}
interface HeroWithImageProps extends HeroBasicProps {
type: "image";
image: string;
altText: string;
}
export type HeroProps = HeroJustTextProps | HeroWithImageProps;
export declare const Hero: (props: HeroProps) => import("react/jsx-runtime").JSX.Element;
export {};