Use buttons to trigger actions or navigate between views.
Don’t use buttons inline with text. Instead, use simple links.
Start by choosing a variation based on its use case. Use large and full-width options for quick style matching. For more nuanced styling, i.e. setting a custom height, use specificity in the parent component. For example, target .some-skill .some-component .btn
to achieve higher specificity and override default styling.
Property | Details |
---|---|
Type | One of primary, secondary, simple, or caution |
Text | Optional; Text to show |
Icon | Optional; Icon to show |
Type | Defaults to button . Use submit to submit a form. |
button
. Set to submit
if used to submit a form.false
false
false
,false