Buttons
Closed this issue · 0 comments
LudoLogical commented
Story
As a user, I want to interact with Platform by clicking on buttons.
Description
Create a React component, Button
, that can be configured to appear in all of the styles shown in the Figma file for Platform.
Acceptance Criteria
Button
s can be
a. primary (accentbackground-color
, whitecolor
),
b. secondary (accentborder-color
andcolor
, whitebackground-color
), or
c. warning (redbackground-color
, whitecolor
)Button
s can either conform to the width of their contents or conform to the width of their parent elementButton
s can contain an arbitrary icon that is sized appropriately, can appear on either side of the text, and is colored white if primary or warning and accent if secondary- All
Button
s have rounded corners and text content is in Roboto - All other styles match final design choices in Figma
Button
s can serve as links or accept a function to be called on click
Notes
None