Button.poly.tsx
1 import type { JSX } from "@genoly/core/jsx-runtime"; 2 import { value } from "./constants"; 3 import Label from "./Label.poly"; 4 import styles from "./Button.module.css"; 5 6 export interface ButtonProps { 7 children: JSX.Element; 8 } 9 10 export default function Button(props: ButtonProps) { 11 return ( 12 <> 13 <Label>Say hello to some {String(value)}!</Label> 14 <button class={styles.button}>{props.children}</button> 15 </> 16 ); 17 }