MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Label

Function Label

starters/tailwind/src/Field.tsx:13–23  ·  view source on GitHub ↗
(props: LabelProps)

Source from the content-addressed store, hash-verified

11import {composeTailwindRenderProps, focusRing} from './utils';
12
13export function Label(props: LabelProps) {
14 return (
15 <RACLabel
16 {...props}
17 className={twMerge(
18 'font-sans text-sm text-neutral-600 dark:text-neutral-300 font-medium cursor-default w-fit',
19 props.className
20 )}
21 />
22 );
23}
24
25export function Description(props: TextProps) {
26 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected