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

Function SelectDescription

packages/ui/src/components/Select/SelectDescription.tsx:5–22  ·  view source on GitHub ↗
({
  description,
})

Source from the content-addressed store, hash-verified

3import { useSelectContext } from './context';
4
5export const SelectDescription: FC<{ description?: string }> = ({
6 description,
7}) => {
8 const {
9 ids: { descriptionId },
10 } = useSelectContext();
11 if (!description) {
12 return null;
13 }
14 return (
15 <p
16 id={descriptionId}
17 className="text-foreground-secondary text-sm select-none"
18 >
19 {description}
20 </p>
21 );
22};

Callers

nothing calls this directly

Calls 1

useSelectContextFunction · 0.90

Tested by

no test coverage detected