UNPKG

@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

16 lines 1.16 kB
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import clsx from 'clsx'; import { getBaseProps } from '../internal/base-component'; import { useModalContextLoadingComponent } from '../internal/hooks/use-modal-component-analytics'; import WithNativeAttributes from '../internal/utils/with-native-attributes'; import styles from './styles.css.js'; export default function InternalSpinner({ size = 'normal', variant = 'normal', nativeAttributes, __internalRootRef, ...props }) { const baseProps = getBaseProps(props); useModalContextLoadingComponent(); return (React.createElement(WithNativeAttributes, { ...baseProps, tag: "span", componentName: "Spinner", nativeAttributes: nativeAttributes, className: clsx(baseProps.className, styles.root, styles[`size-${size}`], styles[`variant-${variant}`]), ref: __internalRootRef }, React.createElement("span", { className: clsx(styles.circle, styles['circle-left']) }), React.createElement("span", { className: clsx(styles.circle, styles['circle-right']) }))); } //# sourceMappingURL=internal.js.map