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

Create IconTab component #181

Open
davefeucht opened this issue Dec 10, 2023 · 0 comments
Open

Create IconTab component #181

davefeucht opened this issue Dec 10, 2023 · 0 comments
Labels
component Individual components used to build up the application

Comments

@davefeucht
Copy link
Owner

davefeucht commented Dec 10, 2023

This component should be a 20 x 20px square with a configurable icon inside. It should have the following props:

  • tabId: string - id of the tab this tab button is associated with
  • label: string - text to be used for alt on the icon as well as an aria-label on the component container
  • onClick: function (tabId: string) - function to call on click which takes a string (the tabId) as a parameter. This should be passed from the parent component, and it should be the state which the parent component uses to determine which tab content to render
@davefeucht davefeucht added the component Individual components used to build up the application label Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component Individual components used to build up the application
Projects
None yet
Development

No branches or pull requests

1 participant