UNPKG

@styleless-ui/react

Version:

Completely unstyled, headless and accessible React UI components.

22 lines (21 loc) 723 B
import * as React from "react"; import type { MergeElementProps } from "../../typings"; interface OwnProps { /** * The content of the component. */ children?: React.ReactNode; /** * The className applied to the component. */ className?: string; } export type Props<T extends React.ElementType = "strong"> = MergeElementProps<T, OwnProps & { /** * The component used for the root node. * Either a string to use a HTML element or a component. */ as?: T; }>; declare const SnackbarTitle: <T extends React.ElementType<any> = React.ElementType<any>, E extends HTMLElement = HTMLElement>(props: Props<T>, ref: React.Ref<E>) => JSX.Element; export default SnackbarTitle;