Skip to content

feat(button): replace btnType with variant and color#107

Merged
wangdicoder merged 4 commits intomasterfrom
feat/button-variant-color-api
Apr 14, 2026
Merged

feat(button): replace btnType with variant and color#107
wangdicoder merged 4 commits intomasterfrom
feat/button-variant-color-api

Conversation

@wangdicoder
Copy link
Copy Markdown
Owner

Summary

  • replace the Button, Button.Group, and SplitButton btnType API with variant and color
  • rebuild button styles and button tokens around variant/color combinations
  • migrate docs, demos, snapshots, and downstream usages to the new API

Breaking changes

  • remove btnType and ButtonType
  • add variant: solid | outline | ghost | link
  • add color: default | primary | info | success | warning | danger
  • rename button design tokens to variant/color-based keys such as button.solid.primary.bg

Validation

  • pnpm --filter @tiny-design/react exec jest button split-button transfer
  • pnpm --filter @tiny-design/react build
  • pnpm --filter @tiny-design/tokens exec node scripts/build.js
  • pnpm --filter @tiny-design/docs build

Notes

  • includes a major changeset for @tiny-design/react and @tiny-design/tokens
  • keeps the recent loading, icon-position, shape, and group inheritance improvements under the new API model

@wangdicoder wangdicoder merged commit cce1cdf into master Apr 14, 2026
1 check passed
@wangdicoder wangdicoder deleted the feat/button-variant-color-api branch April 14, 2026 08:46
@github-actions github-actions bot mentioned this pull request Apr 14, 2026
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