@gechiui/components
Version:
UI components for GeChiUI.
18 lines (16 loc) • 674 B
JavaScript
/**
* GeChiUI dependencies
*/
import { useMergeRefs, useFocusableIframe } from '@gechiui/compose';
import deprecated from '@gechiui/deprecated';
export default function FocusableIframe( { iframeRef, ...props } ) {
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 <iframe ref={ ref } { ...props } />;
}