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 ⭐️

621 B
Raw Blame
import {Popover} from "../Popover";
import {IconInfoCircle} from "@tabler/icons-react";
import classes from "./InputLabelWithHelp.module.scss";

interface InputLabelWithHelpProps {
    label: string;
    helpText: React.ReactNode;
}

export const InputLabelWithHelp = ({label, helpText}: InputLabelWithHelpProps) => {
    return (
        <div className={classes.labelWrapper}>
            <label>{label}</label>
            <div className={classes.helpIcon}>
                <Popover title={helpText}>
                    <IconInfoCircle size={14}/>
                </Popover>
            </div>
        </div>
    );
}