Amba-Agent-App/components/ui/label.tsx
2026-01-16 00:22:35 +03:00

27 lines
745 B
TypeScript

import * as LabelPrimitive from '@rn-primitives/label';
import * as React from 'react';
import { cn } from '~/lib/utils';
const Label = React.forwardRef<LabelPrimitive.TextRef, LabelPrimitive.TextProps>(
({ className, onPress, onLongPress, onPressIn, onPressOut, ...props }, ref) => (
<LabelPrimitive.Root
onPress={onPress}
onLongPress={onLongPress}
onPressIn={onPressIn}
onPressOut={onPressOut}
>
<LabelPrimitive.Text
ref={ref}
className={cn(
'text-sm text-foreground native:text-base font-medium leading-none',
className
)}
{...props}
/>
</LabelPrimitive.Root>
)
);
Label.displayName = LabelPrimitive.Root.displayName;
export { Label };