import styles from "./css/MyElement.module.css";
interface Props {
src: JSX.Element;
}
export default function MyElement(props: Props) {
return (
<div class={styles.wrapper}>
{props.src} // props.src.addAttribute("class", {styles.my_class}) or smt would be nice, or anything that achieves the same result too
</div>
);
}
import styles from "./css/MyElement.module.css";
interface Props {
src: JSX.Element;
}
export default function MyElement(props: Props) {
return (
<div class={styles.wrapper}>
{props.src} // props.src.addAttribute("class", {styles.my_class}) or smt would be nice, or anything that achieves the same result too
</div>
);
}