Appwrite Styled Form Button (forms/button.svelte)

console-getitforcomm · ui, UI / Frontend, svelte, button, form, analytics

Reusable button component for forms, supporting submit actions, loading states, analytics events, and link behavior with theme‑aware styling.

<!--
  Source: https://github.com/mperkins0155/console-getitforcomm | License: BSD-3-Clause | Copyright 2019 Appwrite (https://appwrite.io) and individual contributors
  Provided via justclaw.it.com; keep this notice with the code.
-->
<script lang="ts">
    import { trackEvent } from '$lib/actions/analytics';
    import { getContext, hasContext } from 'svelte';
    import { readable } from 'svelte/store';
    import type { FormContext } from './form.svelte';
    import { Button, Spinner } from '@appwrite.io/pink-svelte';
    import type { ComponentProps } from 'svelte';

    type Props = ComponentProps<Button.Button | Button.Anchor>;

    export let submit = false;
    export let secondary = false;
    export let text = false;
    export let icon = false;
    export let danger = false;
  

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key