ConceptPortal-public/rsconcept/frontend/src/components/ui/LabeledValue.tsx

18 lines
364 B
TypeScript
Raw Normal View History

interface LabeledValueProps {
2023-12-28 14:04:44 +03:00
id?: string;
label: string;
text: string | number;
title?: string;
2023-07-18 14:55:40 +03:00
}
function LabeledValue({ id, label, text, title }: LabeledValueProps) {
2023-07-18 14:55:40 +03:00
return (
2023-12-28 14:04:44 +03:00
<div className='flex justify-between gap-3'>
2024-03-17 19:24:12 +03:00
<label title={title}>{label}</label>
2023-12-28 14:04:44 +03:00
<span id={id}>{text}</span>
</div>
);
2023-07-18 14:55:40 +03:00
}
2023-12-28 14:04:44 +03:00
export default LabeledValue;