Inputs with the label inside
A text box and a drop-down whose labels sit inside the box.
Add it to your project
Or install the packages yourselfTerminal
npm install @mantine/core
First time with Mantine UI? Set it up once.
The code
import { Select, TextInput } from '@mantine/core';
import classes from './ContainedInput.module.css';
export function ContainedInputs() {
return (
<>
<TextInput label="Shipping address" placeholder="15329 Huston 21st" classNames={classes} />
<Select
mt="md"
comboboxProps={{ withinPortal: true }}
data={['React', 'Angular', 'Svelte', 'Vue']}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.