Download wp-calypso/client/layout/sidebar/menu.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/layout/sidebar/menu.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/layout/sidebar/menu.tsx
-
curl -L -o menu.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/layout/sidebar/menu.tsx
415 Bytes
| import clsx from 'clsx'; | |
| import { forwardRef } from 'react'; | |
| import type { ReactNode, LegacyRef } from 'react'; | |
| const SidebarMenu = forwardRef( | |
| ( | |
| { children, className, ...props }: { children: ReactNode; className?: string }, | |
| ref: LegacyRef< HTMLUListElement > | |
| ) => ( | |
| <ul ref={ ref } className={ clsx( 'sidebar__menu', className ) } { ...props }> | |
| { children } | |
| </ul> | |
| ) | |
| ); | |
| export default SidebarMenu; | |