Skip to content

Commit

Permalink
Add more tag properties for textarea, option and select
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed May 3, 2024
1 parent d6cb68b commit 500f3f6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions meta/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,41 @@ textarea:
required:
doc: Whether the input is required to submit the form it is contained within.
type: "Optional[bool]"
name: The name to use for this value when submitting the form.
rows:
doc: The number of rows (lines) to use in the text area. Value should be an integer, but given as type `str`.
type: "Optional[str]"
cols:
doc: The number of columns (length of each line) to use in the text area. Value should be an integer, but given as type `str`.
type: "Optional[str]"
placeholder: Placeholder text to use when the field is empty.
disabled:
doc: "Whether this option is disabled, meaning it cannot be selected, and will not be submitted with the form."
type: "Optional[Literal['disabled']]"
maxlength: The maximum number of characters permitted in the textarea
wrap:
doc: How to perform word wrapping ("hard" or "soft")
type: "Union[Literal['hard', 'soft'], None]"
readonly:
doc: "Whether this option is read-only, meaning it cannot be modified"
type: "Optional[bool]"

option:
attributes:
selected:
doc: "Whether this option is the default selection within the `select` element"
type: "Optional[bool]"
disabled:
doc: "Whether this option is disabled, meaning it cannot be selected, and will not be submitted with the form."
type: "Optional[bool]"
value:
doc: "The value to use if this option is selected when submitting the form"

select:
base: StylableTag
attributes:
required:
doc: Whether the input is required to submit the form it is contained within.
type: "Optional[bool]"
name: The name to use for this value when submitting the form.

0 comments on commit 500f3f6

Please sign in to comment.