Line

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

ui/client/features/new-project/components/NewProjectForm

Cockpit client (features), next. Source: ui/client/features/new-project/components/NewProjectForm.tsx.

Functions#

NewProjectForm()#

NewProjectForm(__namedParameters): Element

Defined in: ui/client/features/new-project/components/NewProjectForm.tsx:24

Presentation-only "New project" form for the Open-a-project screen: one name, an optional starting framework, the button. Making the folder, setting it up and opening it is the server's job.

Props#

Prop Type Required Default Description
name string Yes —
framework NewProjectFramework Yes —
nameProblem `string null` Yes —
destination `string null` Yes —
canCreate boolean Yes —
creating boolean Yes —
error `string null` Yes —
onName (v: string) => void Yes —
onFramework (v: NewProjectFramework) => void Yes —
onCreate () => void Yes —

Returns#

Element