Yet another button component built with Qwik.
The stream-able and resumable UI component you will ever need. Visit @ipohjs/webui for more components.
Pre-requisite
- Qwik >= 1.x
Install
# Install via npm
$ pnpm install @ipohjs/qwik-button
# Install via pnpm
$ pnpm install @ipohjs/qwik-button
Usage
@ipohjs/qwik-button
import { QwikButton } from '@ipohjs/qwik-button';
export const Main = component$(() => {
const onClick$ = $<QwikButtonProps['onClick$']>((ev) => {
console.debug('click', ev);
});
return (
<main>
<QwikButton onClick$={onClick$}>Click me</QwikButton>
</main>
);
});