mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added text input
This commit is contained in:
parent
5aca2508ea
commit
578b37716b
7 changed files with 527 additions and 0 deletions
24
src/components/input/Icon/index.tsx
Normal file
24
src/components/input/Icon/index.tsx
Normal file
|
@ -0,0 +1,24 @@
|
|||
import React, { FC } from 'react';
|
||||
import { IIcon } from '~/redux/types';
|
||||
|
||||
type IProps = React.SVGAttributes<SVGElement> & {
|
||||
size?: number;
|
||||
icon: IIcon;
|
||||
};
|
||||
|
||||
export const Icon: FC<IProps> = ({
|
||||
size = 20,
|
||||
icon,
|
||||
...props
|
||||
}) => (
|
||||
<svg
|
||||
width={size}
|
||||
height={size}
|
||||
viewBox={`0 0 24 24`}
|
||||
preserveAspectRatio="xMidYMid slice"
|
||||
{...props}
|
||||
style={{ ...props.style, outline: 'none' }}
|
||||
>
|
||||
<use xlinkHref={`#${icon}`} />
|
||||
</svg>
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue