mirror of https://github.com/AlphaNecron/Void.git
13 lines
380 B
TypeScript
13 lines
380 B
TypeScript
import { InputGroup, Input, InputLeftElement, Icon } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
export default function IconTextbox({ icon, ...other }) {
|
|
return (
|
|
<InputGroup>
|
|
<InputLeftElement pointerEvents='none' width='4.5rem'>
|
|
<Icon as={icon} mr={8} mb={2}/>
|
|
</InputLeftElement>
|
|
<Input size='sm' {...other} />
|
|
</InputGroup>
|
|
);
|
|
} |