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 shared Button #16

Open
2 of 3 tasks
ErikSin opened this issue Jun 19, 2024 · 0 comments
Open
2 of 3 tasks

Create shared Button #16

ErikSin opened this issue Jun 19, 2024 · 0 comments
Assignees

Comments

@ErikSin
Copy link
Contributor

ErikSin commented Jun 19, 2024

Create Button following CoMapeo Mobile's design. Button should use Material UI's Button.

Images from CoMapeo

Image

To Do:

  • Button look visually similar to CoMapeo Mobile
  • Button has props as described below
  • Button uses styled() for style overrides

Props

type ColorScheme = 'dark' | 'light' | 'ComapeoBlue';
type Variant = 'contained' | 'outlined' | 'text';
type Size = 'medium' | 'large';

type ButtonProps = {
    // check if it is a MessageDescriptor. If it is a message descriptor translate it using [formatMessage](https://formatjs.io/docs/react-intl/api#formatmessage)
    children: React.ReactNode | MessageDescriptor //https://formatjs.io/docs/react-intl/components#message-descriptor
    color?: ColorScheme;
    disabled?: boolean;
    onPress: () => void;
    size?: Size;
    testID?: string;
    variant?: Variant;
}
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 a pull request may close this issue.

2 participants