Custom switch
A switch with its own look.
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 { Group, Switch } from '@mantine/core';
import classes from './CustomSwitch.module.css';
export function CustomSwitch() {
return (
<Group justify="center" p="md">
<Switch label="Custom Switch" classNames={classes} withThumbIndicator={false} />
</Group>
);
}
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.