You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/documentation/tutorial/05-events/06-dom-event-forwarding/app-b/CustomButton.svelte

21 lines
314 B

<button on:click> Click me </button>
<style>
button {
background: #e2e8f0;
color: #64748b;
border: unset;
border-radius: 6px;
padding: 0.75rem 1.5rem;
cursor: pointer;
}
button:hover {
background: #cbd5e1;
color: #475569;
}
button:focus {
background: #94a3b8;
color: #f1f5f9;
}
</style>