import type { FC, HTMLAttributes, ReactNode } from 'react';
import styles from './visually-hidden.module.scss';
export type VisuallyHiddenProps = Omit<
HTMLAttributes,
'children'
> & {
/**
* The contents to visually hide.
*/
children: ReactNode;
};
export const VisuallyHidden: FC = ({
children,
className = '',
...props
}) => {
const wrapperClass = `${styles.wrapper} ${className}`;
return (
{children}
);
};