@spark-ui/components
Version:
Spark (Leboncoin design system) components.
17 lines (14 loc) • 577 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren, HTMLAttributes, Ref } from 'react';
type VisuallyHiddenProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
/**
* Change the default rendered element for the one passed as a child, merging their props and behavior.
*/
asChild?: boolean;
ref?: Ref<HTMLElement>;
};
declare const VisuallyHidden: {
({ asChild, ref, ...props }: VisuallyHiddenProps): react_jsx_runtime.JSX.Element;
displayName: string;
};
export { VisuallyHidden, type VisuallyHiddenProps };