ClonePanel
A clone URL panel with SSH/HTTPS tabs, a monospace URL with copy button, and optional notes.
Import
import { ClonePanel } from "@gumtree/ui/forge/ClonePanel" ; Props
| Prop | Type | Default | Description |
|---|---|---|---|
urls* | CloneUrl[] | - | Array of { label, url } entries for each tab |
activeTab | number | 0 | Index of the active tab |
note | ComponentChildren | - | Optional note displayed below the URL |
Examples
SSH and HTTPS
A clone panel with two URL options and a note.
SSHHTTPS
git@example.forge:necessary/example-app.git
SHA-256 object format · gitoxide compatible< ClonePanel
urls = { [
{ label : "SSH" , url : "git@example.forge:necessary/example-app.git" } ,
{ label : "HTTPS" , url : "https://example.forge/necessary/example-app.git" } ,
] }
note = "SHA-256 object format · gitoxide compatible"
/> Single URL
A clone panel with just one option.
HTTPS
https://example.com/repo.git
< ClonePanel urls = { [ { label : "HTTPS" , url : "https://example.com/repo.git" } ] } />