Download app/src/components/Reference.astro from transformers-community/Transformers-tenets: direct link, hf CLI and curl.
- Browser
- Download file 928 Bytes
-
https://huggingface.co/spaces/transformers-community/Transformers-tenets/resolve/refs%2Fpr%2F3/app/src/components/Reference.astro
- Command line
-
hf download hf://spaces/transformers-community/Transformers-tenets@refs/pr/3/app/src/components/Reference.astro
-
curl -L -o Reference.astro https://huggingface.co/spaces/transformers-community/Transformers-tenets/resolve/refs%2Fpr%2F3/app/src/components/Reference.astro
928 Bytes
| --- | |
| interface Props { | |
| /** Unique ID for the reference */ | |
| id: string; | |
| /** HTML caption for the reference */ | |
| caption: string; | |
| } | |
| const { id, caption } = Astro.props as Props; | |
| --- | |
| <div class="reference-wrapper" id={id}> | |
| <figure class="reference"> | |
| <div class="reference__content"> | |
| <slot /> | |
| </div> | |
| <figcaption class="reference__caption" set:html={caption} /> | |
| </figure> | |
| </div> | |
| <style> | |
| .reference-wrapper { | |
| margin: var(--block-spacing-y) 0; | |
| } | |
| .reference { | |
| margin: 0; | |
| } | |
| .reference__content { | |
| /* Content can be anything */ | |
| } | |
| .reference__caption { | |
| text-align: left; | |
| font-size: 0.9rem; | |
| color: var(--muted-color); | |
| margin-top: 6px; | |
| background: var(--page-bg); | |
| position: relative; | |
| z-index: var(--z-elevated); | |
| display: block; | |
| width: 100%; | |
| } | |
| </style> | |