Download src/ui/dropdown/clear-button.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 523 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/ui/dropdown/clear-button.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/ui/dropdown/clear-button.tsx
-
curl -L -o clear-button.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/ui/dropdown/clear-button.tsx
523 Bytes
| import { X } from "lucide-react"; | |
| interface ClearButtonProps { | |
| onClear: () => void; | |
| } | |
| export function ClearButton({ onClear }: ClearButtonProps) { | |
| return ( | |
| <button | |
| type="button" | |
| data-testid="dropdown-clear" | |
| onClick={onClear} | |
| // eslint-disable-next-line i18next/no-literal-string -- i18n-free UI primitive; callers supply translated labels | |
| aria-label="Clear selection" | |
| className="text-white hover:text-[var(--oh-text-tertiary)]" | |
| > | |
| <X size={14} /> | |
| </button> | |
| ); | |
| } | |