1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-23 05:24:18 +00:00
pds-2021-g2-nest/code/frontend/src/components/Label.js

18 lines
434 B
JavaScript
Raw Normal View History

2021-04-22 17:10:19 +00:00
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>
)
}