/**
 * 作为input的labe。填充placeholder
 */

import React, { ReactElement, FC } from "react";
import clsx from "clsx";

interface LabelProps {
  label?: ReactElement | string;
  className?: string;
  name?: string;
}

export const PrefixLabel: FC<LabelProps> = props => {
  return (
    <label htmlFor={props.name} className={clsx("text-derive-11 min-w-[48px] ml-[12px] text-[14px]", props.className)}>
      {props.label}
    </label>
  );
};
