[**@fungi.computer/caps**](../README.md) --- [@fungi.computer/caps](../README.md) / components/icon-lamp # components/icon-lamp ## Type Aliases ### IconLampProps ```ts type IconLampProps = object & Omit, "children">; ``` Props accepted by IconLamp. #### Type Declaration | Name | Type | Description | | -------------- | ------------------------------- | -------------------------------------------------------------------- | | `label` | `string` | The full name read with the state, such as "Read files". | | `icon` | `ReactNode` | - | | `caption?` | `string` | A short visible legend; it does not replace the accessible label. | | `on` | `boolean` | Lit: the icon in colour with the ink lamp. Off: the grey silhouette. | | `stateLabels?` | readonly \[`string`, `string`\] | How the state reads aloud, as [on, off]. | --- ### IconLampItem ```ts type IconLampItem = Omit & object; ``` One lamp in an IconLamps row. #### Type Declaration | Name | Type | | ---- | -------- | | `id` | `string` | --- ### IconLampsProps ```ts type IconLampsProps = object & Omit, "children">; ``` Props accepted by IconLamps. #### Type Declaration | Name | Type | | -------------- | ------------------------------------------ | | `items` | readonly [`IconLampItem`](#iconlampitem)[] | | `stateLabels?` | readonly \[`string`, `string`\] | ## Variables ### IconLamp ```ts const IconLamp: ForwardRefExoticComponent< object & Omit, "children"> & RefAttributes >; ``` A read-only icon state: an icon key's face with no input, for rights or settings shown but not changed here. It reads as "Label: state". --- ### IconLamps ```ts const IconLamps: ForwardRefExoticComponent< object & Omit, "children"> & RefAttributes >; ``` A named row of read-only icon lamps; name it with `aria-label(ledby)`.