timelessco / chakra-components

Components built on top of Chakra UI
MIT License
1 stars 0 forks source link

[RFC] Button Component #40

Closed govindsingh55 closed 4 years ago

govindsingh55 commented 4 years ago

INTRODUCTION

Button component based on the Chakra Button component.

The Goal:

Create <Button />,<Button.Link />

Export:

Component Parts

Props

prasanna1211 commented 4 years ago

Needs more description: Please look into what else can be added from here: https://github.com/timelessco/chakra-components/issues/16

prasanna1211 commented 4 years ago

Few things that can be thought of

  1. Pre or post icon in button
  2. Pre (or) post preloader
  3. Full width buttons
  4. Primary and secondary buttons

And there should be a few other things that can be taken from chakra.

navin-moorthy commented 4 years ago

For dot notation, get the inspiration from Ant Button Design. Convert their type into our dot notation.

prasanna1211 commented 4 years ago
  1. Varient is spelled wrongly
  2. I guess it is better to have dot notation for primary, secondary, outline and fullWidth.
  3. Button sometimes act as links. That time it should have a tag and have href to the link url. On clicking it should open in new tab / window.
prasanna1211 commented 4 years ago

Who can start on button component ?

govindsingh55 commented 4 years ago

I started.

prasanna1211 commented 4 years ago

Clear about the props ?

govindsingh55 commented 4 years ago

working on dot notation

prasanna1211 commented 4 years ago

Finalize props on RFC before you start working please.

govindsingh55 commented 4 years ago

dot notation should be for varient or primary, secodary ?