Renamed folder

This commit is contained in:
Patrick Alvin Alcala 2025-06-05 10:21:40 +08:00
parent b1e7d2d49a
commit 2061ef6f02
2 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,17 @@
import './Button.sass'
import { Show } from 'solid-js'
export default (props: { label?: string; to?: string; onClick?: () => void; }) => {
return <>
<Show when={props.to}>
<a href={props.to} aria-label={props.label}>
<button class="button">{props.label || 'Click Me!'}</button>
</a>
</Show>
<Show when={!props.to}>
<button class="button" onClick={props.onClick}>{props.label || 'Click Me!'}</button>
</Show>
</>
}