mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-23 05:24:18 +00:00
18 lines
434 B
JavaScript
18 lines
434 B
JavaScript
|
import React, { Fragment } from "react"
|
||
|
import Style from "./Label.module.css"
|
||
|
import classNames from "classnames"
|
||
|
|
||
|
|
||
|
export default function Label({ children, text, for_ }) {
|
||
|
return (
|
||
|
<Fragment>
|
||
|
<label for={for_} className={Style.LabelText} >
|
||
|
{text}
|
||
|
</label>
|
||
|
<div className={Style.LabelContent}>
|
||
|
{children}
|
||
|
</div>
|
||
|
</Fragment>
|
||
|
)
|
||
|
}
|