Open x0k opened 1 month ago
Thank you for your detailed feedback! I truly appreciate the time you took to share your insights on the limitations and areas for improvement.
Adding support for attributes such as all types, class, style, readonly, data-* and other common properties for Buttons and Inputs is a top priority for me. This enhancement will make the components more versatile and applicable to a wider range of use cases.
I completely agree with your recommendations, and I plan to work on this next. I am about to release a new version that includes additional components.
Thanks once again for this valuable input; it is instrumental in shaping the next steps for this library.
@kampsy I'm down to give some of these a try, if you can assign something to me so that it doesn't overlap with what you have done.
I have been trying to use this library to create forms and here are my thoughts:
type
(submit
,reset
, etc), forButton
class
,style
,readonly
, etc. forInput
data-*
attributesstring | string[]
inChoicebox
string
inInput
withtype="number"
undefined
as the initial value because... no reason. ButChoicebox
is something special. Even if you provide an initial value fortype=“checkbox”
as an array, your value will immediately be replaced with“”
because.... no reason.type
attribute ofInput
is very limited. (there is nocolor
,file
,range
,datetime-local
,time
,tel
,url
)Select
withmultiple
does not existInput
has anerror
property, but you can't pass multiple errors to it. Ok, you will render an errors list by yourself, but how to trigger error state of theInput
now?My recommendations:
Input
), and then compose them into blocks. That way, if your block abstraction leaks, the user can drop down to a lower level and customize low-level components to meet their requirements.