Download chakra-ui/packages/react/src/utils/attr.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 151 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/utils/attr.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/utils/attr.ts
-
curl -L -o attr.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/utils/attr.ts
151 Bytes
| type Booleanish = boolean | "true" | "false" | |
| export const dataAttr = (condition: boolean | undefined) => | |
| (condition ? "" : undefined) as Booleanish | |