UNPKG

@gechiui/components

Version:
26 lines (24 loc) 870 B
import _extends from "@babel/runtime/helpers/esm/extends"; import { createElement } from "@gechiui/element"; /** * GeChiUI dependencies */ import { useMergeRefs, useFocusableIframe } from '@gechiui/compose'; import deprecated from '@gechiui/deprecated'; export default function FocusableIframe(_ref) { let { iframeRef, ...props } = _ref; const ref = useMergeRefs([iframeRef, useFocusableIframe()]); deprecated('gc.components.FocusableIframe', { alternative: 'gc.compose.useFocusableIframe' }); // Disable reason: The rendered iframe is a pass-through component, // assigning props inherited from the rendering parent. It's the // responsibility of the parent to assign a title. // eslint-disable-next-line jsx-a11y/iframe-has-title return createElement("iframe", _extends({ ref: ref }, props)); } //# sourceMappingURL=index.js.map