Home / File/ IconChevron.tsx — react Source File

IconChevron.tsx — react Source File

Architecture documentation for IconChevron.tsx, a tsx file in the react codebase. 1 imports, 1 dependents.

File tsx PlaygroundApp Stores 1 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  4e4e5a98_5124_5b44_9988_b087b9a52d93["IconChevron.tsx"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  4e4e5a98_5124_5b44_9988_b087b9a52d93 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  84f17a2e_0d58_9d14_2c35_30f086f6e436["ConfigEditor.tsx"]
  84f17a2e_0d58_9d14_2c35_30f086f6e436 --> 4e4e5a98_5124_5b44_9988_b087b9a52d93
  style 4e4e5a98_5124_5b44_9988_b087b9a52d93 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.
 */

import {memo} from 'react';

export const IconChevron = memo<
  JSX.IntrinsicElements['svg'] & {
    /**
     * The direction the arrow should point.
     */
    displayDirection: 'right' | 'left';
  }
>(function IconChevron({className, displayDirection, ...props}) {
  const rotationClass =
    displayDirection === 'left' ? 'rotate-90' : '-rotate-90';
  const classes = className ? `${rotationClass} ${className}` : rotationClass;

  return (
    <svg
      className={classes}
      xmlns="http://www.w3.org/2000/svg"
      width="20"
      height="20"
      viewBox="0 0 20 20"
      {...props}>
      <g fill="none" fillRule="evenodd" transform="translate(-446 -398)">
        <path
          fill="currentColor"
          fillRule="nonzero"
          d="M95.8838835,240.366117 C95.3957281,239.877961 94.6042719,239.877961 94.1161165,240.366117 C93.6279612,240.854272 93.6279612,241.645728 94.1161165,242.133883 L98.6161165,246.633883 C99.1042719,247.122039 99.8957281,247.122039 100.383883,246.633883 L104.883883,242.133883 C105.372039,241.645728 105.372039,240.854272 104.883883,240.366117 C104.395728,239.877961 103.604272,239.877961 103.116117,240.366117 L99.5,243.982233 L95.8838835,240.366117 Z"
          transform="translate(356.5 164.5)"
        />
        <polygon points="446 418 466 418 466 398 446 398" />
      </g>
    </svg>
  );
});

Domain

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does IconChevron.tsx do?
IconChevron.tsx is a source file in the react codebase, written in tsx. It belongs to the PlaygroundApp domain, Stores subdomain.
What functions are defined in IconChevron.tsx?
IconChevron.tsx defines 1 function(s): IconChevron.
What does IconChevron.tsx depend on?
IconChevron.tsx imports 1 module(s): react.
What files import IconChevron.tsx?
IconChevron.tsx is imported by 1 file(s): ConfigEditor.tsx.
Where is IconChevron.tsx in the architecture?
IconChevron.tsx is located at compiler/apps/playground/components/Icons/IconChevron.tsx (domain: PlaygroundApp, subdomain: Stores, directory: compiler/apps/playground/components/Icons).

Analyze Your Own Codebase

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

Try Supermodel Free