import React from "react";

const Label = ({ htmlFor, children, required = false, className = "" }) => {
  return (
    <label htmlFor={htmlFor} className={`form-label d-block ${className}`}>
      {children}
      {required && <span className="text-danger ms-1">*</span>}
    </label>
  );
};

export default Label;
