Files
nova-design-system/src/components/Button/button.astro
T

16 lines
356 B
Plaintext
Raw Normal View History

---
export interface Props {
type: 'primary' | 'secondary';
disabled?: boolean;
2026-06-09 14:08:53 +02:00
icon?: boolean;
}
2026-06-09 14:08:53 +02:00
const { type, disabled = false, icon = false } = Astro.props;
---
2026-06-09 14:08:53 +02:00
<div class={`button button__${type} ${disabled ? 'button--disabled' : ''} ${icon ? 'button--icon' : ''}`}>
<slot/>
</div>
<style lang="scss">
@use './_button.scss';
</style>