space-game/src/components/shared/Button.svelte
Michael Mainguy eccf101b73
All checks were successful
Build / build (push) Successful in 1m20s
Implement Svelte-based UI architecture with component system
Major refactoring of the UI layer to use Svelte components:
- Replace inline HTML with modular Svelte components
- Add authentication system with UserProfile component
- Implement navigation store for view management
- Create comprehensive settings and controls screens
- Add level editor with JSON validation
- Implement progression tracking system
- Update level configurations and base station model

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 15:01:17 -06:00

22 lines
453 B
Svelte

<script lang="ts">
export let variant: 'primary' | 'secondary' | 'success' | 'danger' = 'primary';
export let disabled = false;
export let type: 'button' | 'submit' | 'reset' = 'button';
const className = `btn-${variant}`;
</script>
<button
class={className}
{disabled}
{type}
on:click
>
<slot />
</button>
<style>
/* Inherits styles from global styles.css */
/* btn-primary, btn-secondary, etc. are already defined */
</style>