Improvement of current ui component Button
can we have some improvements on our current ui component Button like:
- Size: to change the size of the button. You can set the value to
xs, sm, md,
orlg
. - Variant: prop to change the visual style of the Button. You can set the value to solid (which is similar to primary but pubsweet ofers only blue background), ghost, outline, or link (which already is secondary )
- Variant Color: prop to change the color of the text of the button
- Loading state: maybe would be good to have loading state with props like
isLoading
andloadingText
but this is very debatable || optional
Based on our requirements in NCBI project we need Variant Prop and Button size more than two other ones , but the variant color and loading state would be good to have
ps. the naming conventions I mentioned above are based on chakra-ui but we can use our own if we have other terminology for these properties