Is it possible to create a custom component based off a base component like the following?
components: {
Button: Button.extend({
defaultProps: { color: primaryColor },
}),
// referring to this part below
ButtonSecondary: Button.extend({
defaultProps: { color: secondaryColor },
}),
},
const ButtonSecondary = (props) => {
const { color, children } = useProps('ButtonSecondary', null, props);
return <div style={{ color }}>{children}</div>
}