PHP Classes

File: src/components/inputs/InputLabel.tsx

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/components/inputs/InputLabel.tsx   Download  
File: src/components/inputs/InputLabel.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 487 bytes
 

Contents

Class file image Download
interface IInputLabel { /** * Input level children props. */ children: JSX.Element | string; /** * Input html for attribute. */ htmlFor?: string; /** * Custom Class name. */ className?: string; } export default function InputLabel({ children, htmlFor, className, }: IInputLabel) { return ( <label className={`block text-sm ${className}`} htmlFor={htmlFor}> {children} </label> ); }