src/icon/chevron-right.tsx (33 lines of code) (raw):
/*
Copyright (c) Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// BASEUI-GENERATED-REACT-ICON
// DO NOT EDIT THIS FILE DIRECTLY, SEE README.md
import * as React from 'react';
import { useStyletron } from '../styles';
import { mergeOverride, toObjectOverride } from '../helpers/overrides';
import Icon from './icon';
import type { IconProps } from './types';
// @ts-ignore
function ChevronRight(props: IconProps, ref) {
const [, theme] = useStyletron();
const { title = 'Right', size, color, overrides = {}, ...restProps } = props;
const SvgOverride = mergeOverride(
// Icons from the theme target the SVG override in the underlying Icon component
{
component: theme.icons && theme.icons.ChevronRight ? theme.icons.ChevronRight : null,
},
overrides && overrides.Svg ? toObjectOverride(overrides.Svg) : {}
);
return (
<Icon
viewBox="0 0 24 24"
ref={ref}
title={title}
size={size}
color={color}
overrides={{ Svg: SvgOverride }}
{...restProps}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M9.29289 7.29289C8.90237 7.68342 8.90237 8.31658 9.29289 8.70711L12.5858 12L9.29289 15.2929C8.90237 15.6834 8.90237 16.3166 9.29289 16.7071C9.68342 17.0976 10.3166 17.0976 10.7071 16.7071L14.7071 12.7071C14.8946 12.5196 15 12.2652 15 12C15 11.7348 14.8946 11.4804 14.7071 11.2929L10.7071 7.29289C10.3166 6.90237 9.68342 6.90237 9.29289 7.29289Z"
/>
</Icon>
);
}
export default React.forwardRef<SVGSVGElement, IconProps>(ChevronRight);