Button Overview
Description
Pando’s <Button />
is an interactive element that performs an action when activated. It can be used with text and a start or end icon. It is not meant to contain only an icon. If you would like to use a Button with only an icon, please see
<Button />
has custom props as well as access to all native <button />
attributes. <button />
element including attributes and behavior
Examples: submitting a form, closing a modal, adding a row, or canceling a form
Button Anatomy
- Button
- Start icon
- Label
- End icon
Import
import { Button } from '@pluralsight/react'
Variations
Props
Default
{ palette: 'action', usage: 'filled', size: 'lg', endIcon: null, startIcon: null }
All Options
Note: those denoted with ?
are optional
{ palette?: 'action' | 'neutral' | 'danger', usage?: 'filled' | 'outline' | 'text', size?: 'md' | 'lg', endIcon?: ReactNode, startIcon?: ReactNode }