@theguild/components
Version:
27 lines (24 loc) • 925 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { ReactNode } from 'react';
import { AnchorProps } from './anchor.mjs';
import 'url';
import '../types/components.mjs';
import 'next/image';
import 'next/link';
import 'react-player';
declare namespace InfoCardProps {
interface InfoCardBaseProps {
icon: ReactNode;
heading: ReactNode;
scheme?: 'neutral' | 'green';
}
interface InfoCardLinkProps extends InfoCardBaseProps, Omit<AnchorProps, 'as'> {
href: AnchorProps['href'];
}
interface InfoCardInertProps extends InfoCardBaseProps, React.HTMLAttributes<HTMLElement> {
as: 'div' | 'li';
}
}
type InfoCardProps = InfoCardProps.InfoCardLinkProps | InfoCardProps.InfoCardInertProps;
declare function InfoCard({ icon, heading, className, children, scheme, ...rest }: InfoCardProps): react_jsx_runtime.JSX.Element;
export { InfoCard, InfoCardProps };