Skip to content

Number Input **does** require the label #2584

@mesmith027

Description

@mesmith027

Link to doc page in question (if any):
https://docs.streamlit.io/en/stable/api.html?highlight=number_input#streamlit.number_input

Name of the Streamlit feature whose docs need improvement:
The documentation for the number_input states that you do not need to include a label when calling st.number_input(), but this throws an error because you do need to add something for the label

What you think the docs should say:
label (str) – A short label explaining to the user what this input is for.

Link to Streamlit forum where this is reported:
https://discuss.streamlit.io/t/number-input-error/8679

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:widgetsRelated to widget elementstype:docsRequests for changes to docs (will be rerouted to docs repo)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions