Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@sushiswap/ui / form / FormHelperText.tsx
Size: Mime:
import { FC } from 'react'

import { Typography } from '../typography'

interface FormHelperText {
  message?: string
  isError?: boolean
}

export const FormHelperText: FC<FormHelperText> = ({ message, isError = false }) => {
  if (!message) return null

  return (
    <Typography variant="xs" className={isError ? 'text-red' : 'text-slate-500'}>
      {message}
    </Typography>
  )
}