mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
23 lines
372 B
TypeScript
23 lines
372 B
TypeScript
import React from 'react'
|
|
import styles from './Label.module.css'
|
|
|
|
const Label = ({
|
|
required,
|
|
children,
|
|
...props
|
|
}: {
|
|
required?: boolean
|
|
children: string
|
|
htmlFor: string
|
|
}) => (
|
|
<label
|
|
className={`${styles.label} ${required && styles.required}`}
|
|
title={required ? 'Required' : ''}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</label>
|
|
)
|
|
|
|
export default Label
|