Sha256: a6b72fd725766907b07a8e2a928a135195a81d1cb0544c729d4c44311732b718

Contents?: true

Size: 369 Bytes

Versions: 10

Compression:

Stored size: 369 Bytes

Contents

import { LabelHTMLAttributes } from 'react'

export default function InputLabel({
  value,
  className = '',
  children,
  ...props
}: LabelHTMLAttributes<HTMLLabelElement> & { value?: string }) {
  return (
    <label {...props} className={`block font-medium text-sm text-gray-700 dark:text-gray-300 ${className}`}>
      {value ? value : children}
    </label>
  )
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kaze-0.18.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
kaze-0.17.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
kaze-0.16.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
kaze-0.15.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
kaze-0.14.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
kaze-0.13.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
kaze-0.12.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
kaze-0.11.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
kaze-0.10.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
kaze-0.9.0 stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx