mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
24 lines
434 B
TypeScript
24 lines
434 B
TypeScript
interface LabeledValueProps {
|
|
id?: string
|
|
label: string
|
|
text: string | number
|
|
title?: string
|
|
}
|
|
|
|
function LabeledValue({ id, label, text, title }: LabeledValueProps) {
|
|
return (
|
|
<div className='flex justify-between gap-3'>
|
|
<label
|
|
className='font-semibold'
|
|
title={title}
|
|
htmlFor={id}
|
|
>
|
|
{label}
|
|
</label>
|
|
<span id={id}>
|
|
{text}
|
|
</span>
|
|
</div>);
|
|
}
|
|
|
|
export default LabeledValue; |