Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/clone/components/GithubRepoPicker

Cockpit client (features), next. Source: ui/client/features/clone/components/GithubRepoPicker.tsx.

Functions#

GithubRepoPicker()#

GithubRepoPicker(__namedParameters): Element

Defined in: ui/client/features/clone/components/GithubRepoPicker.tsx:25

Presentation-only: the repositories the GitHub connection can read (names and visibility only), a filter, and a list to pick one from. Picking fills the repository address of the form; nothing is cloned until "Clone and open".

Props#

Prop Type Required Default Description
options RepoOption[] Yes —
picked string Yes — The option matching the address typed in the form, or ''.
query string Yes —
loading boolean Yes —
hasMore boolean Yes —
hint `string null` Yes —
disabled boolean Yes —
onPick (fullName: string) => void Yes —
onQuery (q: string) => void Yes —
onMore () => void Yes —
onReload () => void Yes —

Returns#

Element