Skip to content

Commit

Permalink
Improve tag suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Nov 6, 2023
1 parent 4ac302a commit f7f32bd
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 46 deletions.
30 changes: 28 additions & 2 deletions meta/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ link:
base: SelfClosingTag
attributes:
href: Location of the file being linked to
rel: Kind of file being loaded (eg stylesheet)
rel: Kind of file being loaded (eg `"stylesheet"`)

a:
base: StylableTag
Expand All @@ -38,15 +38,17 @@ style:
form:
attributes:
method:
doc: HTTP request method to use
doc: The HTTP request method to use when submitting this form. In almost all cases, you'll want this to be POST.
default: "'POST'"
action: The URL to request to when submitting this form. By default, requests will be sent to the same URL as the current page.

input:
base: SelfClosingTag
attributes:
type: Kind of input control to use (checkbox, radio, date, password, text, etc)
name: Name of the field. Submitted with the form as part of a name/value pair
value: Initial value of the control
placeholder: Placeholder text to use for text inputs. If the field is empty, the placeholder is shown.
readonly:
doc: Include if field is read-only
type: bool
Expand All @@ -55,6 +57,30 @@ input:
doc: Include if field is required
type: bool
default: "False"
formmethod: The HTTP request method to use on click if this input is a submit button. Generally, it is preferred to set the `method` attribute on the `<form>` element instead of this.
formaction: The URL to request to on click if this input is a submit button. Generally, it is preferred to set the `action` attribute on the `<form>` element instead of this.

button:
base: StylableTag
attributes:
formmethod: The HTTP request method to use on click. Generally, it is preferred to set the `method` attribute on the `<form>` element instead of this.
formaction: The URL to request to on click. Generally, it is preferred to set the `action` attribute on the `<form>` element instead of this.

table:
base: StylableTag

th:
base: StylableTag
attributes:
scope: 'The area of the table that this heading applies to. Allowed values: `"col"`, `"row"`, `"colgroup"`, `"rowgroup"`'
colspan: The number of columns in the table that this heading spans.
rowspan: The number of rows in the table that this heading spans.

td:
base: StylableTag
attributes:
colspan: The number of columns in the table that this cell spans.
rowspan: The number of rows in the table that this cell spans.

label:
attributes:
Expand Down
Loading

0 comments on commit f7f32bd

Please sign in to comment.