MCPcopy Create free account
hub / github.com/mantinedev/ui.mantine.dev / InputWithButton

Function InputWithButton

lib/InputWithButton/InputWithButton.tsx:4–29  ·  view source on GitHub ↗
(props: TextInputProps)

Source from the content-addressed store, hash-verified

2import { ActionIcon, TextInput, TextInputProps, useMantineTheme } from '@mantine/core';
3
4export function InputWithButton(props: TextInputProps) {
5 const theme = useMantineTheme();
6
7 return (
8 <TextInput
9 radius="xl"
10 size="md"
11 placeholder="Search questions"
12 rightSectionWidth={42}
13 leftSection={<IconSearch size={18} stroke={1.5} />}
14 rightSection={
15 <ActionIcon
16 size={32}
17 radius="xl"
18 color={theme.primaryColor}
19 variant="filled"
20 aria-label="Search"
21 >
22 <IconArrowRight size={18} stroke={1.5} />
23 </ActionIcon>
24 }
25 aria-label="Search questions"
26 {...props}
27 />
28 );
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected