Skip to content

feat(molecules): add Button molecule - #26

Merged
eumaninho54 merged 7 commits into
release/v0.3.0from
feat/molecules-button
May 3, 2026
Merged

feat(molecules): add Button molecule#26
eumaninho54 merged 7 commits into
release/v0.3.0from
feat/molecules-button

Conversation

@eumaninho54

@eumaninho54 eumaninho54 commented May 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Adiciona a molecule Button com variantes (primary, secondary, outline, ghost, destructive), tamanhos (sm, md, lg), estado de loading, disabled, ícones esquerdo/direito
  • Lógica de tamanhos e cores encapsulada no ViewModel (buildSize, buildVariantColors)
  • useStyles recebe os valores já computados e só monta o StyleSheet
  • Por padrão o botão ocupa todo o width do container; envolva num View com alignSelf: 'flex-start' para comportamento inline

Test plan

  • Rodar yarn test e verificar os testes do Button.test.tsx
  • Abrir Storybook e verificar as stories: Default, Variants, Sizes, Loading, Disabled, WithIcons, Inline, Interactive

🤖 Generated with Claude Code

eumaninho54 and others added 7 commits May 3, 2026 04:07
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eumaninho54
eumaninho54 merged commit 8014ce9 into release/v0.3.0 May 3, 2026
2 checks passed
@eumaninho54
eumaninho54 deleted the feat/molecules-button branch May 3, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant