@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
20 lines • 978 B
JavaScript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
'use client';
import React from 'react';
import { getBaseProps } from '../internal/base-component';
import useBaseComponent from '../internal/hooks/use-base-component';
import { applyDisplayName } from '../internal/utils/apply-display-name';
import { getExternalProps } from '../internal/utils/external-props';
import InternalTreeView from './internal';
const TreeView = ({ connectorLines = 'none', ...props }) => {
const baseComponentProps = useBaseComponent('TreeView', {
props: { connectorLines },
});
const baseProps = getBaseProps(props);
const externalProps = getExternalProps(props);
return (React.createElement(InternalTreeView, { ...baseProps, ...baseComponentProps, ...externalProps, ...props, connectorLines: connectorLines }));
};
applyDisplayName(TreeView, 'TreeView');
export default TreeView;
//# sourceMappingURL=index.js.map