-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML Attributes vs Component Arguments #1286
Comments
The built-in components are a bit special because they were designed and implemented much prior to angle bracket syntax and the possibility to pass HTML attributes ad-hoc. We are revisiting this as a whole and likely move it towards favouring HTML attributes, making it more clear which things have to be passed as arguments (e.g. |
Can you send a PR with the change you mentioned? And tweaking the "You can pass the following standard attributes within the input helper:" prose to make sure it mentions component arguments? |
Further work is tracked at #1254. |
I’m somehow confused about the Component Arguments vs HTML Attributes thing in built-in components documentation
The
<Input>
component in the examples uses Component Arguments for@id
,@type
,@value
and HTML Attributes fordisabled
. But then in the table of supported<input>
attributes one can seevalue
anddisabled
next to each other. So it’s not obvious whether one should use@
symbol or not.My blind guess would be that the syntax should be:
But again seeing the
@type
and@value
examples hints me that a@
symbol might be expected forwidth
,placeholder
andmaxlength
?Should the table of arguments maybe have the respective
@
symbols where Component Argument is expected?The text was updated successfully, but these errors were encountered: