Home / File/ LoadingAnimation.js — react Source File

LoadingAnimation.js — react Source File

Architecture documentation for LoadingAnimation.js, a javascript file in the react codebase. 2 imports, 1 dependents.

File javascript BabelCompiler Validation 2 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  cc9092f8_40d3_7bfd_6552_ebe71cb60a00["LoadingAnimation.js"]
  036504c3_20ae_d826_a122_35100a030052["LoadingAnimation.css"]
  cc9092f8_40d3_7bfd_6552_ebe71cb60a00 --> 036504c3_20ae_d826_a122_35100a030052
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  cc9092f8_40d3_7bfd_6552_ebe71cb60a00 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  276bc34e_3008_101e_3cd7_cc895fcd3848["KeyValue.js"]
  276bc34e_3008_101e_3cd7_cc895fcd3848 --> cc9092f8_40d3_7bfd_6552_ebe71cb60a00
  style cc9092f8_40d3_7bfd_6552_ebe71cb60a00 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

import * as React from 'react';
import styles from './LoadingAnimation.css';

type Props = {
  className?: string,
};

export default function LoadingAnimation({className = ''}: Props): React.Node {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      className={`${styles.Icon} ${className}`}
      width="24"
      height="24"
      viewBox="0 0 100 100">
      <path d="M0 0h100v100H0z" fill="none" />
      <circle fill="currentColor" stroke="none" cx="20" cy="50" r="10">
        <animate
          attributeName="opacity"
          dur="1s"
          values="0;1;0"
          repeatCount="indefinite"
          begin="0.1"
        />
      </circle>
      <circle fill="currentColor" stroke="none" cx="50" cy="50" r="10">
        <animate
          attributeName="opacity"
          dur="1s"
          values="0;1;0"
          repeatCount="indefinite"
          begin="0.2"
        />
      </circle>
      <circle fill="currentColor" stroke="none" cx="80" cy="50" r="10">
        <animate
          attributeName="opacity"
          dur="1s"
          values="0;1;0"
          repeatCount="indefinite"
          begin="0.3"
        />
      </circle>
    </svg>
  );
}

Domain

Subdomains

Functions

Dependencies

Frequently Asked Questions

What does LoadingAnimation.js do?
LoadingAnimation.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in LoadingAnimation.js?
LoadingAnimation.js defines 1 function(s): LoadingAnimation.
What does LoadingAnimation.js depend on?
LoadingAnimation.js imports 2 module(s): LoadingAnimation.css, react.
What files import LoadingAnimation.js?
LoadingAnimation.js is imported by 1 file(s): KeyValue.js.
Where is LoadingAnimation.js in the architecture?
LoadingAnimation.js is located at packages/react-devtools-shared/src/devtools/views/Components/LoadingAnimation.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src/devtools/views/Components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free