Download src/components/features/markdown/horizontal-rule.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/markdown/horizontal-rule.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/markdown/horizontal-rule.tsx
-
curl -L -o horizontal-rule.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/markdown/horizontal-rule.tsx
367 Bytes
| import React from "react"; | |
| import { ExtraProps } from "react-markdown"; | |
| // Custom component to render <hr> in markdown | |
| export function hr({ | |
| ...props | |
| }: React.ClassAttributes<HTMLHRElement> & | |
| React.HTMLAttributes<HTMLHRElement> & | |
| ExtraProps) { | |
| return ( | |
| <hr | |
| {...props} | |
| className="my-4 border-0 border-t border-[var(--oh-border)]" | |
| /> | |
| ); | |
| } | |