Search box with a button
A rounded search box with a round arrow button inside it.
Add it to your project
Or install the packages yourselfTerminal
npm install @mantine/core @tabler/icons-react
First time with Mantine UI? Set it up once.
The code
import { IconArrowRight, IconSearch } from '@tabler/icons-react';
import { ActionIcon, TextInput, TextInputProps, useMantineTheme } from '@mantine/core';
export function InputWithButton(props: TextInputProps) {
const theme = useMantineTheme();
return (
<TextInput
radius="xl"
size="md"
placeholder="Search questions"
rightSectionWidth={42}This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.