write an input box to build base-input
, which focuses on managing styles and some ui logic. As the business expands, I need to customize the types that can be entered in the input box. Now I have written an instruction "only-num", how to pass this instruction from the outside when the caller calls base-input
?