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

feat: add SegmentedButtons component #3283

Merged
merged 42 commits into from
Aug 31, 2022
Merged

Conversation

okwasniewski
Copy link
Member

@okwasniewski okwasniewski commented Jul 30, 2022

This PR introduces new component named: SegmentedButton.

Summary

General overview of the component: https://m3.material.io/components/segmented-buttons/overview

Highlights:

  • single or multi-selection
  • segmented buttons can have 2-5 segments, segments cannot wrap into a new line
  • icons can be used in place of labels
  • icon next to the label is optional

Screenshots

Version 3

ios android
Screenshot 2022-08-08 at 11 32 58 Screenshot 2022-08-08 at 11 32 52

Version 2

ios android
Screenshot 2022-08-08 at 11 33 23 Screenshot 2022-08-08 at 11 33 21

Test plan

Write tests for this component.

@okwasniewski okwasniewski self-assigned this Jul 30, 2022
@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@callstack-bot
Copy link

callstack-bot commented Jul 30, 2022

Hey @okwasniewski, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

2 similar comments
@github-actions
Copy link

github-actions bot commented Aug 1, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

github-actions bot commented Aug 2, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

github-actions bot commented Aug 2, 2022

The mobile version of example app from this branch is ready! You can see it here

.

5 similar comments
@github-actions
Copy link

github-actions bot commented Aug 3, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@okwasniewski okwasniewski marked this pull request as ready for review August 3, 2022 13:54
@okwasniewski okwasniewski removed the wip label Aug 3, 2022
@okwasniewski okwasniewski requested a review from satya164 August 3, 2022 14:16
@github-actions
Copy link

github-actions bot commented Aug 3, 2022

The mobile version of example app from this branch is ready! You can see it here

.

1 similar comment
@github-actions
Copy link

github-actions bot commented Aug 4, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

github-actions bot commented Aug 7, 2022

The mobile version of example app from this branch is ready! You can see it here

.

1 similar comment
@github-actions
Copy link

github-actions bot commented Aug 7, 2022

The mobile version of example app from this branch is ready! You can see it here

.

src/components/SegmentedButton/SegmentedButton.tsx Outdated Show resolved Hide resolved
src/components/SegmentedButton/SegmentedButton.tsx Outdated Show resolved Hide resolved
src/components/SegmentedButton/SegmentedButton.tsx Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

The mobile version of example app from this branch is ready! You can see it here

.

1 similar comment
@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@okwasniewski okwasniewski force-pushed the feature/segmentedButton branch from 39088d5 to 6952379 Compare August 28, 2022 14:55
@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@lukewalczak lukewalczak merged commit 0d32dd7 into main Aug 31, 2022
@lukewalczak lukewalczak deleted the feature/segmentedButton branch August 31, 2022 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants