UNPKG

@heycar-uikit/core

Version:
13 lines (12 loc) 639 B
/// <reference types="react" /> import React from 'react'; type ContainerBaseProps<E extends React.ElementType> = { /** * The component used for the root node. Either a string to use a HTML element or a component * @default "div" */ component?: E; }; type ContainerProps<E extends React.ElementType> = ContainerBaseProps<E> & Omit<React.ComponentProps<E>, keyof ContainerBaseProps<E>>; declare function Container<E extends React.ElementType = 'div'>({ className, children, component, ...rest }: ContainerProps<E>): React.ReactElement<any, string | React.JSXElementConstructor<any>>; export { Container as default };