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: Button component #159

Merged
merged 29 commits into from
Aug 4, 2020
Merged

feat: Button component #159

merged 29 commits into from
Aug 4, 2020

Conversation

willoliveira
Copy link
Contributor

@willoliveira willoliveira commented Aug 4, 2020

Creates a button component to the ocean design system.

Package: @useblu/ocean-components@0.1.0-beta.7

Usage

import React from 'react';

import { Button } from '@useblu/ocean-components';

const ExempleButtons = () => {
  return (
    <div className='page'>
      {/* 
        default props
        variant=primary
        size=md
      */}
      <Button>Default</Button>

      <Button variant='primary'>Primary</Button>
      <Button variant='secondary'>Secondary</Button>
      <Button variant='text'>Text</Button>
      <Button variant='inverse'>Inverse</Button>

      <Button size='sm'>Small</Button>
      <Button size='md'>Medium</Button>
      <Button size='lg'>Large</Button>

      <Button disabled>Disabled</Button>

      <Button blocked={true}>Blocked</Button>

      <Button component="a" href="url/to/">Anchor</Button>
    </div>
  )
}

export default ExempleButtons;

Documentation

Link to storybook:

Inspirations

@willoliveira willoliveira added the enhancement New feature or request label Aug 4, 2020
@willoliveira willoliveira added this to the v0.2.0 - Atoms milestone Aug 4, 2020
@willoliveira willoliveira self-assigned this Aug 4, 2020
@willoliveira willoliveira changed the title Button component feat: Button component Aug 4, 2020
src/Button/__tests__/Button.test.tsx Show resolved Hide resolved
src/Button/__tests__/Button.test.tsx Show resolved Hide resolved
src/Button/__tests__/Button.test.tsx Show resolved Hide resolved
src/Button/__tests__/Button.test.tsx Outdated Show resolved Hide resolved
src/Button/__tests__/Button.test.tsx Show resolved Hide resolved
@eltongarbin eltongarbin marked this pull request as draft August 4, 2020 16:49
@codeclimate
Copy link

codeclimate bot commented Aug 4, 2020

Code Climate has analyzed commit 1cf6d32 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (100% is the threshold).

This pull request will bring the total coverage in the repository to 100.0% (0.0% change).

View more on Code Climate.

@sonarcloud
Copy link

sonarcloud bot commented Aug 4, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@willoliveira willoliveira marked this pull request as ready for review August 4, 2020 18:39
@willoliveira willoliveira merged commit 3f96b8e into master Aug 4, 2020
@willoliveira willoliveira deleted the button-component branch August 4, 2020 20:26
eltongarbin added a commit that referenced this pull request Oct 2, 2020
* Button component

Co-authored-by: Willian Gomes de Oliveira <willian.gomes@useblu.com.br>
Co-authored-by: Elton Garbin <eltongarbin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants