github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/src/components/icon/caretDown.tsx (about)

     1  // Copyright 2020 The Cockroach Authors.
     2  //
     3  // Use of this software is governed by the Business Source License
     4  // included in the file licenses/BSL.txt.
     5  //
     6  // As of the Change Date specified in that file, in accordance with
     7  // the Business Source License, use of this software will be governed
     8  // by the Apache License, Version 2.0, included in the file
     9  // licenses/APL.txt.
    10  
    11  import * as React from "react";
    12  
    13  export interface IconProps {
    14    fill?: string;
    15  }
    16  
    17  CaretDown.defaultProps = {
    18    fill: "#475872",
    19  };
    20  
    21  export function CaretDown(props: IconProps) {
    22    const { fill } = props;
    23  
    24    return (
    25      <svg width={8} height={6} viewBox="0 0 8 6" fill="none" {...props}>
    26        <path
    27          fillRule="evenodd"
    28          clipRule="evenodd"
    29          d="M1.39.45a.667.667 0 10-1.003.878l3.111 3.555a.667.667 0 001.004 0l3.11-3.555A.667.667 0 106.61.45L4 3.432 1.39.45z"
    30          fill={fill}
    31        />
    32      </svg>
    33    );
    34  }