(props: TextInputProps)
| 2 | import { ActionIcon, TextInput, TextInputProps, useMantineTheme } from '@mantine/core'; |
| 3 | |
| 4 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected