@primer/react-brand
Version:
Primer Brand is a GitHub's design system for creating React-based marketing websites and digital experiences.
11 lines (10 loc) • 727 B
TypeScript
import React, { PropsWithChildren } from 'react';
import type { BaseProps } from '../../component-helpers';
export type BoxProps<T extends keyof JSX.IntrinsicElements = 'div'> = React.HTMLAttributes<T> & {
as?: T | 'div' | 'span' | 'section';
} & (T extends 'span' ? BaseProps<HTMLSpanElement> : T extends 'section' ? BaseProps<HTMLElement> : T extends 'section' ? BaseProps<HTMLDivElement> : BaseProps<HTMLElement>);
/**
* An animation-helper component that can be rendered as any HTML element.
* Use Animate to wrap any element and apply an animation to it.
*/
export declare function Animate({ animate, as, children, className, style, ...rest }: PropsWithChildren<BoxProps>): import("react/jsx-runtime").JSX.Element;