@retriever-ui/heading
Version:
Componente de controle de tipografia
11 lines (10 loc) • 555 B
TypeScript
import { FlexProps, GridProps, StylesProps } from '@retriever-ui/system';
import { HTMLRetriever } from '@retriever-ui/system/lib/retriever';
import React from 'react';
declare type RetrieverProps = Omit<StylesProps, keyof FlexProps | keyof GridProps> & HTMLRetriever<'h1'>;
export interface HeadingProps extends RetrieverProps {
children?: React.ReactNode;
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
}
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
export default Heading;