mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
27 lines
466 B
TypeScript
27 lines
466 B
TypeScript
interface LabeledTextProps {
|
|
id?: string
|
|
label: string
|
|
text: any
|
|
tooltip?: string
|
|
}
|
|
|
|
function LabeledText({id, label, text, tooltip}: LabeledTextProps) {
|
|
return (
|
|
<div className='flex justify-between gap-4'>
|
|
<label
|
|
className='font-semibold'
|
|
title={tooltip}
|
|
htmlFor={id}
|
|
>
|
|
{label}
|
|
</label>
|
|
<span
|
|
id={id}
|
|
>
|
|
{text}
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default LabeledText; |