'use client';
import {XDSFieldLabel} from '@xds/core/Field';
import {XDSVStack} from '@xds/core/Layout';
const LockIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" strokeLinejoin="round" {...props}>
<rect x="3" y="11" width="18" height="11" rx="2" />
<path d="M7 11V7a5 5 0 0 1 10 0v4" />
</svg>
);
export default function FieldLabelShowcase() {
return (
<XDSVStack gap={4}>
<XDSFieldLabel
label="Email address"
inputID="email-input"
isRequired
/>
<XDSFieldLabel
label="Phone number"
inputID="phone-input"
isOptional
description="Include country code for international numbers"
/>
<XDSFieldLabel
label="API key"
inputID="api-input"
labelTooltip="Your API key can be found in the developer settings"
labelIcon={LockIcon}
/>
<XDSFieldLabel
label="Disabled field"
inputID="disabled-input"
isDisabled
/>
</XDSVStack>
);
}