UNPKG

@pandacss/studio

Version:

The automated token documentation for Panda CSS

14 lines (10 loc) 527 B
import { createElement, forwardRef } from 'react' import { splitProps } from '../helpers.mjs'; import { getVisuallyHiddenStyle } from '../patterns/visually-hidden.mjs'; import { panda } from './factory.mjs'; export const VisuallyHidden = /* @__PURE__ */ forwardRef(function VisuallyHidden(props, ref) { const [patternProps, restProps] = splitProps(props, []) const styleProps = getVisuallyHiddenStyle(patternProps) const mergedProps = { ref, ...styleProps, ...restProps } return createElement(panda.div, mergedProps) })