13 lines
271 B
TypeScript
13 lines
271 B
TypeScript
import type { ParentComponent } from "solid-js";
|
|
|
|
/*
|
|
* Code from andii.dev
|
|
*/
|
|
export const Button: ParentComponent<{ onClick?: () => void }> = (props) => {
|
|
return (
|
|
<button class="button" type="button" onClick={props.onClick}>
|
|
{props.children}
|
|
</button>
|
|
);
|
|
};
|