feat: add Button component with primary and secondary styles, including disabled state

This commit is contained in:
LOUIS POTEVIN
2026-06-04 12:09:34 +02:00
parent c585ec3266
commit 5600107e53
4 changed files with 63 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
---
export interface Props {
type: 'primary' | 'secondary';
disabled?: boolean;
}
const { type, disabled = false } = Astro.props;
---
<div class={`button button__${type} ${disabled ? 'button--disabled' : ''}`}>
<slot/>
</div>
<style lang="scss">
@use './_button.scss';
</style>