PasswordRequirement

mail@pastecode.io avatar
unknown
typescript
2 months ago
459 B
6
Indexable
Never
import { Box, Text } from '@mantine/core'
import { Check, X } from 'tabler-icons-react'
function PasswordRequirement({
  meets,
  label,
}: {
  meets: boolean
  label: string
}) {
  return (
    <Text
      color={meets ? 'teal' : 'red'}
      sx={{ display: 'flex', alignItems: 'center' }}
      mt={7}
      size="sm"
    >
      {meets ? <Check size={14} /> : <X size={14} />} <Box ml={10}>{label}</Box>
    </Text>
  )
}
export default PasswordRequirement
Leave a Comment