Constimport { TextInput, NumberInput, Switch, Select, Fieldset, Text } from "@mantine/core";
import { createMantineResolver } from "schema-components/themes/mantine";
const mantineResolver = createMantineResolver({
TextInput, NumberInput, Switch, Select, Fieldset, Text,
});
<SchemaProvider resolver={mantineResolver}>
<SchemaComponent schema={userSchema} value={user} onChange={setUser} />
</SchemaProvider>
Component resolver mapping schema field types to Mantine primitives —
TextInput,NumberInput,Switch,Select,Fieldset,Text.Built against minimal HTML stubs so the resolver is usable without wiring up
@mantine/corefirst — production usage should call createMantineResolver with real Mantine element types.