Files
minhtran_dev/src/components/Button.tsx

13 lines
271 B
TypeScript
Raw Normal View History

2025-01-23 11:16:33 -05:00
import type { ParentComponent } from "solid-js";
2025-02-19 00:35:08 -05:00
/*
* Code from andii.dev
*/
2025-01-23 11:16:33 -05:00
export const Button: ParentComponent<{ onClick?: () => void }> = (props) => {
return (
<button class="button" type="button" onClick={props.onClick}>
{props.children}
</button>
);
};