UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

1 lines 1.24 kB
{"version":3,"file":"visually-hidden.cjs","names":["createComponent","visuallyHiddenStyle"],"sources":["../../../../src/components/visually-hidden/visually-hidden.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps } from \"../../core\"\nimport type { VisuallyHiddenStyle } from \"./visually-hidden.style\"\nimport { createComponent } from \"../../core\"\nimport { visuallyHiddenStyle } from \"./visually-hidden.style\"\n\nexport interface VisuallyHiddenProps extends HTMLStyledProps<\"span\"> {}\n\nconst {\n PropsContext: VisuallyHiddenPropsContext,\n usePropsContext: useVisuallyHiddenPropsContext,\n withContext,\n} = createComponent<VisuallyHiddenProps, VisuallyHiddenStyle>(\n \"visually-hidden\",\n visuallyHiddenStyle,\n)\n\nexport { useVisuallyHiddenPropsContext, VisuallyHiddenPropsContext }\n\n/**\n * `VisuallyHidden` is a common technique used in web accessibility to hide content from the visual client, but keep it readable for screen readers.\n *\n * @see https://yamada-ui.com/docs/components/visually-hidden\n */\nexport const VisuallyHidden = withContext(\"span\")()\n"],"mappings":";;;;;;;AASA,MAAM,EACJ,cAAc,4BACd,iBAAiB,+BACjB,gBACEA,yCACF,mBACAC,kDACD;;;;;;AASD,MAAa,iBAAiB,YAAY,OAAO,EAAE"}