// // Copyright 2026 DXOS.org // import React, { type LabelHTMLAttributes } from 'react'; import { recipes } from '../../recipes.ts'; import { composable, composableProps } from '../../util/slots.ts'; export type LabelProps = LabelHTMLAttributes & { /** Visually hidden but still names its control (e.g. a search input whose placeholder says what it is). */ srOnly?: boolean; }; export const Label = composable(({ children, srOnly, ...props }, forwardedRef) => { const { className, ...rest } = composableProps(props, { classNames: recipes.label() }); return ( ); }); Label.displayName = 'Label';