import React, { useState } from 'react';
import { SearchOutlined } from '@ant-design/icons';
import { Button, Divider, Flex, Radio, Space, Tooltip } from 'antd';
const App: React.FC = () => {
const [position, setPosition] = useState<'start' | 'end'>('end');
return (
<>
setPosition(e.target.value)}>
start
end
Preview
} />
} iconPosition={position}>
Search
} />
} iconPosition={position}>
Search
} />
} type="text" iconPosition={position}>
Search
} />
} iconPosition={position}>
Search
} href="https://www.google.com" iconPosition={position} />
>
);
};
export default App;