@styleless-ui/react
Version:
Completely unstyled, headless and accessible React UI components.
11 lines (10 loc) • 355 B
TypeScript
import * as React from "react";
interface OwnProps {
/**
* The content of the component. It should be a single non-fragment React element.
*/
children: React.ReactElement;
}
export type Props = React.HTMLAttributes<HTMLElement> & OwnProps;
declare const As: (props: Props, ref: React.Ref<HTMLElement>) => JSX.Element;
export default As;