Sha256: 16a504ea37ebe5ba437ed541e5c9e34d79d29284a51b4641df3f6f690c5487da

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 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

1 entries across 1 versions & 1 rubygems

Version Path
kaze-0.6.0 stubs/inertia-react-ts/app/javascript/Components/InputError.tsx