Skip to content

Instantly share code, notes, and snippets.

@alwaisy
Last active December 21, 2022 13:05
Show Gist options
  • Save alwaisy/b2413b6d5dbbf5e1d25474c016109a6c to your computer and use it in GitHub Desktop.
Save alwaisy/b2413b6d5dbbf5e1d25474c016109a6c to your computer and use it in GitHub Desktop.
///// button-atom
add borderRadius: string to index.d.ts
add props borderRadius to button.tsx
add borderRadius: "10px" to default props
// issues:
color property is not working
// solution
remove color property from Button story Text component
add color="primary" props in button.tsx
add color="primary" in default props
add --> ${styles[`btn-${color}`]}` <-- to className like this className={`social-login-button ${styles[`btn-${color}`]}`}
//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment