{"name":"label","title":"Label","description":"","kind":"component","category":"inputs","status":"beta","props":{"htmlFor":{"type":"string","description":"id of the control it names. Set by the Field when the label is inside one."}},"playground":{"name":"Playground","props":{},"text":"Email address"},"exampleFiles":[{"file":"email-address","title":"Email address"},{"file":"beside-a-switch","title":"Setting beside a switch"},{"file":"optional-field","title":"Optional field"}],"worstCase":[{"name":"Long label","props":{},"text":"The email address we should send the weekly supplier report and every invoice to","width":240},{"name":"Unbreakable label","props":{},"text":"supplier-notification-email-address-for-invoices","width":160},{"name":"One letter","props":{},"text":"X"},{"name":"Right-to-left label","props":{},"text":"عنوان البريد الإلكتروني","width":240},{"name":"Emoji label","props":{},"text":"🚀 Favourite project"}],"anatomy":[{"part":"root","element":"label","description":"A <label>: text.sm, medium, ink. Author text keeps its own direction and wraps (an unbreakable name breaks anywhere); never truncated. Inside a disabled Field it is at half opacity (data-disabled from Ark)."}],"slots":{"default":"The label text (and, inside a Field, its required indicator)."},"states":["disabled"],"tokens":["color.ink","text.sm"],"a11y":{"notes":["A <label> names its control: a click on it focuses (or toggles) the control, and assistive technology reads it as the control's name.","Not focusable itself."]},"motion":["none"]}