Portal/rsconcept/frontend/src/components/ui/LabeledValue.tsx
IRBorisov 2759f10d09
Some checks failed
Backend CI / build (3.12) (push) Has been cancelled
Frontend CI / build (18.x) (push) Has been cancelled
Initial commit
2024-06-07 20:17:03 +03:00

22 lines
506 B
TypeScript

import clsx from 'clsx';
import { CProps } from '../props';
interface LabeledValueProps extends CProps.Styling {
id?: string;
label: string;
text: string | number;
title?: string;
}
function LabeledValue({ id, label, text, title, className, ...restProps }: LabeledValueProps) {
return (
<div className={clsx('flex justify-between gap-6', className)} {...restProps}>
<span title={title}>{label}</span>
<span id={id}>{text}</span>
</div>
);
}
export default LabeledValue;