Open
Description
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";
import type { DBInputProps } from "@db-ux/react-core-components/dist/components/input/model";
type ExtendedInputProps = DBInputProps & {
dummyValue: string;
}
export const ExtendedInput = ({ dummyValue, ...props }: ExtendedInputProps) => {
// value does not make sense, just for demo purposes
return <DBInput {...props} value={dummyValue} />;
}