Spaces:
Running
Running
Download frontend/src/components/ui/Panel.jsx from chesstb/explorer: direct link, hf CLI and curl.
- Browser
- Download file 547 Bytes
-
https://huggingface.co/spaces/chesstb/explorer/resolve/main/frontend/src/components/ui/Panel.jsx
- Command line
-
hf download hf://spaces/chesstb/explorer/frontend/src/components/ui/Panel.jsx
-
curl -L -o Panel.jsx https://huggingface.co/spaces/chesstb/explorer/resolve/main/frontend/src/components/ui/Panel.jsx
547 Bytes
| export default function Panel({ label, title, start, end, className = '', children }) { | |
| return ( | |
| <section className={`panel${className ? ` ${className}` : ''}`} aria-label={label}> | |
| <div className="panel-header"> | |
| <div className="panel-header__start"> | |
| <span className="panel-header__title">{title}</span> | |
| {start} | |
| </div> | |
| <div className="panel-header__end">{end}</div> | |
| </div> | |
| {children} | |
| </section> | |
| ); | |
| } | |