MCPcopy Index your code
hub / github.com/nukeop/nuclear / SelectLabel

Function SelectLabel

packages/ui/src/components/Select/SelectLabel.tsx:5–21  ·  view source on GitHub ↗
({ label })

Source from the content-addressed store, hash-verified

3import { useSelectContext } from './context';
4
5export const SelectLabel: FC<{ label?: string }> = ({ label }) => {
6 const {
7 ids: { labelId, selectId },
8 } = useSelectContext();
9 if (!label) {
10 return null;
11 }
12 return (
13 <label
14 htmlFor={selectId}
15 id={labelId}
16 className="text-foreground text-sm font-semibold"
17 >
18 {label}
19 </label>
20 );
21};

Callers

nothing calls this directly

Calls 1

useSelectContextFunction · 0.90

Tested by

no test coverage detected