Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

556 B
Raw Blame
import {Fieldset as MantineFieldset, FieldsetProps as MantineFieldsetProps} from "@mantine/core";
import classNames from "./Fieldset.module.scss";

export interface FieldsetProps extends MantineFieldsetProps {
    children: React.ReactNode;
}

export const Fieldset = (props: FieldsetProps) => {
    return (
        <MantineFieldset {...props}
                         variant={'filled'}
                         legend={<span className={classNames.legend}>{props.legend}</span>}

        >
            {props.children}
        </MantineFieldset>
    );
}