Contribution Guidelines for gluestack-ui Components

Welcome to the gluestack-ui component library! This guide outlines the structure, best practices, and expectations when contributing new components, specifically using the example of a Button component.

General Guidelines

  1. Component Structure:

  2. Component Scope:

  3. Primitive Components:

    Not need if there is no creator API Just use simple context api with scope.

  4. Reusability & Variants:

  5. Composability:

  6. CSS Interoperability:

Best Practices

  1. Styling:

  2. Accessibility:

  3. Testing:

  4. Performance:

  5. Type Safety:

  6. Display Names:

    Example:

    Button.displayName = 'Button';
    ButtonText.displayName = 'ButtonText';
    
    

Pull Request Requirements