Sha256: 3e3dc55b805b6d582bdac4d94a8be5461f3499c77e346dbfce7376c4512f6c26

Contents?: true

Size: 327 Bytes

Versions: 9

Compression:

Stored size: 327 Bytes

Contents

import { HTMLAttributes } from 'react'

export default function InputError({
  message,
  className = '',
  ...props
}: HTMLAttributes<HTMLParagraphElement> & { message?: string }) {
  return message ? (
    <p {...props} className={`text-sm text-red-600 dark:text-red-400 ${className}`}>
      {message}
    </p>
  ) : null
}

Version data entries

9 entries across 9 versions & 1 rubygems

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