Skip to content

Text

You can use this component to prompt the user to input text.

PropertyValue
InteractivityRequired (fails otherwise)

Demo

A gif that shows the component in action. The developer types the name of the app to create

API

Example

swift
let response = Noora().textPrompt(
    title: "Project name",
    prompt: "How would you like to name your project?",
    description: "It'll be used to create your generated project",
    collapseOnAnswer: true
)

Options

AttributeDescriptionRequiredDefault value
titleThe title of the prompt.No
promptThe prompt that the user will answer.Yes
descriptionA description that provides more context about the question.No
collapseOnAnswerWhether the prompt should collapse after the user inputs text.Notrue

Released under the MIT License.