aws-amplify / amplify-ui

Amplify UI is a collection of accessible, themeable, performant React (and more!) components that can connect directly to the cloud.
https://ui.docs.amplify.aws
Apache License 2.0
912 stars 292 forks source link

Add a prop in the <Tab> for scrollable=true when the tab bar is wider than the screen. #3514

Open TheMassapequaTutor opened 1 year ago

TheMassapequaTutor commented 1 year ago

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Authenticator

Please describe your feature-request in detail.

image

Now when the screen is narrower than the tabs bar, like on a phone, the menu is cut off as shown in the picture above.

I don't know of a way to wrap the tabs in a ScrollArea to get the same effect.

Please describe a solution you'd like.

It would look like this:

<Tabs scrollable={true} >
....
</Tabs>

this would be similar to this library or material UI library

We love contributors! Is this something you'd be interested in working on?

judygab commented 1 year ago

Can I work on this?

zchenwei commented 1 year ago

Can I work on this?

Of course! We welcome and encourage contributions :)

zchenwei commented 1 year ago

@TheMassapequaTutor This is a nice feature. In the meantime, could this simply be addressed by setting overflow: scroll to the container? Or wrapping it in a <ScrollView> to get the scrollable effect?