|
Download js/code/README.md from mindmime/gradio: direct link, hf CLI and curl.
- Browser
- Download file 860 Bytes
-
https://huggingface.co/spaces/mindmime/gradio/resolve/main/js/code/README.md
- Command line
-
hf download hf://spaces/mindmime/gradio/js/code/README.md
-
curl -L -o README.md https://huggingface.co/spaces/mindmime/gradio/resolve/main/js/code/README.md
860 Bytes
| # `@gradio/code` | |
| ```html | |
| <script> | |
| import { BaseCode, BaseCopy, BaseDownload, BaseWidget, BaseExample} from "gradio/code"; | |
| </script> | |
| ``` | |
| BaseCode | |
| ```javascript | |
| export let classNames = ""; | |
| export let value = ""; | |
| export let dark_mode: boolean; | |
| export let basic = true; | |
| export let language: string; | |
| export let lines = 5; | |
| export let extensions: Extension[] = []; | |
| export let useTab = true; | |
| export let readonly = false; | |
| export let placeholder: string | HTMLElement | null | undefined = undefined; | |
| ``` | |
| BaseCopy | |
| ```javascript | |
| export let value: string; | |
| ``` | |
| BaseDownload | |
| ```javascript | |
| export let value: string; | |
| export let language: string; | |
| ``` | |
| BaseWidget | |
| ```javascript | |
| export let value: string; | |
| export let language: string; | |
| ``` | |
| BaseExample | |
| ``` | |
| export let value: string; | |
| export let type: "gallery" | "table"; | |
| export let selected = false; | |
| ``` |