1. How can I add required props? 2. How can I add text to a Component like in the Example?
example:
//Componentexport default function Button(props: ButtonProps) { return ( <> <button class={getStyle(props.type)}></button> </> );}//Site<Button>Test</Button>