You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create an extended variant of some of your components. It should accept all properties of the original component as well as the new ones. Below is an example of how I imported the prop type as a workaround.
import{DBInput}from"@db-ux/react-core-components";importtype{DBInputProps}from"@db-ux/react-core-components/dist/components/input/model";typeExtendedInputProps=DBInputProps&{dummyValue: string;}exportconstExtendedInput=({ dummyValue, ...props}: ExtendedInputProps)=>{// value does not make sense, just for demo purposesreturn<DBInput{...props}value={dummyValue}/>;}
The text was updated successfully, but these errors were encountered:
I would like to create an extended variant of some of your components. It should accept all properties of the original component as well as the new ones. Below is an example of how I imported the prop type as a workaround.
The text was updated successfully, but these errors were encountered: