import React from 'react' import type { ElementType } from 'react' interface SROnlyProps { /** * Defines component element type (e.g.: span). */ text: string /** * Defines component element type (e.g.: span). */ as?: ElementType } function SROnly({ text, as }: SROnlyProps) { const Component = as ?? 'span' return {text} } export default SROnly