@pagopa/mui-italia
Version:
[Material-UI](https://mui.com/core/) theme inspired by [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).
24 lines (23 loc) • 649 B
TypeScript
/// <reference types="react" />
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 {};