mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
7 lines
234 B
JavaScript
7 lines
234 B
JavaScript
import React, {useContext} from 'react';
|
|
import {FieldId} from "ui/components/controls/Field";
|
|
|
|
export default function Label({children}) {
|
|
const fieldId = useContext(FieldId);
|
|
return <label htmlFor={fieldId}>{children}</label>
|
|
}
|