Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Button に文字列以外も入れられるようにする #149

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

TwoSquirrels
Copy link
Member

close #132

各種ボタンのコンポーネント中身の指定の際、text を props で受け取る代わりに slot を用いるようにしました。
中身に文字列だけでなくアイコンなど好きな要素を含められるようになり、汎用性が向上します。

@TwoSquirrels
Copy link
Member Author

(import 順が変わってるのは Prettier がやりました)

@TwoSquirrels
Copy link
Member Author

#80 でも新たにボタンを使っているので、それが main にマージされてからそこも一緒に直した方がよさそう

@TwoSquirrels TwoSquirrels marked this pull request as draft March 4, 2025 19:13
@TwoSquirrels TwoSquirrels self-assigned this Mar 5, 2025
@TwoSquirrels
Copy link
Member Author

TwoSquirrels commented Mar 5, 2025

#150 ともコンフリクト起きそうな気がするし、立ってるプルリクが少ないタイミングでガッとマージまでしたい気持ち

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.

Button に文字列以外も入れられるようにする
1 participant