@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
11 lines • 624 B
JavaScript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React, { useRef } from 'react';
import { useSingleTabStopNavigation } from '@awsui/component-toolkit/internal';
import styles from './styles.css.js';
export default function FocusTarget({ ariaLabel }) {
const divRef = useRef(null);
const { tabIndex } = useSingleTabStopNavigation(divRef);
return (React.createElement("div", { role: "group", ref: divRef, tabIndex: tabIndex, "aria-label": ariaLabel, className: styles['tree-item-focus-target'] }, null));
}
//# sourceMappingURL=focus-target.js.map