Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
    • Alert
    • ButtonDeprecated
    • Collection
    • DateInputDeprecated
    • Dropdown
    • Frame
    • FullWidthModal
    • LegacyTable
    • SearchInputDeprecated
    • SelectOptionItem
    • Table
    • TextDeprecated
    • TooltipDeprecated
  • Deprecated
  • ButtonDeprecated

ButtonDeprecated

Deprecated

Deprecated component

Do not use it in new code. It stays documented to help migrate its remaining usages.

Use instead:

  • Button from murray

Triggers an action or submits a form. Where a screen had several, type and size carried the hierarchy between them.

Health
Component health
Source
View on Github
Design
View Figma
Storybook
View in Storybook
Playground
No Example
Accessibility

partially-compliant

Platform
Web
Accessibility issues
The progress and success state are not focusable. The danger variants miss a visual indication of the danger state for colorblind users. The as attribute can break accessibility if not used with an interactive element.
  • Overview
  • Props
  • Figma

General Guidelines​

  • If you have multiple actions on one screen, use different button types and sizes to show hierarchy.
  • Each Button should represent one action and when triggered should have a very clear outcome.
✅ When to use❌ When not to use
  • Communicating actions users can take
  • Drawing attention to relevant actions in a user's workflow
  • Helping users scan content on a page and understand what is expected of them
  • To make text inside paragraphs or lists actionable
  • use a text Link.
  • To simply navigate to a new URL
  • use a Link.
  • To redirect users to an Android or Apple app store page
  • use a StoreBadge.
  • To launch services (such as chat with a doctor) on an app
  • use a ButtonService.

Variants​

Variant NameNotes
Primary
  • Is used to emphasize actions that are essential to an experience and to establish a clear hierarchy.

  • Don't use more than 3 in the same page/screen.
  • Don't use more than 1 per group or section.
Secondary
  • Use it in place of a PrimaryButton when the action requires less prominence.
  • Use it side by side with a PrimaryButton to indicate the least important of the two.
Tertiary
  • Use it for very low emphasis.
Danger
  • Use it sparingly for emphasizing actions that can be destructive or have negative consequences if taken.

  • Don't use more than one DangerButton in the same page/screen. We should avoid asking the user to choose between more than one destructive action at a time.

Danger Secondary
  • Has a lower emotional charge than the DangerButton.
  • Don't use more than 1 in per page/screen.
  • Don't use DangerButton and DangerSecondaryButton in the same view.

Sizes​

Icons Variant​

Progress and Success States​

Playground​

Loading...

ButtonDeprecated props

NameTypeDefault ValueDescriptionUsage count
as
181 possibilitiesundefined"symbol""object""form""slot""style""title""button""search""article""dialog""figure""img""link""main""menu""menuitem""option""switch""table""text""time""progress""a""abbr""address""area""aside""audio""b""base""bdi""bdo""big""blockquote""body""br""canvas""caption""center""cite""code""col""colgroup""data""datalist""dd""del""details""dfn""div""dl""dt""em""embed""fieldset""figcaption""footer""h1""h2""h3""h4""h5""h6""head""header""hgroup""hr""html""i""iframe""input""ins""kbd""keygen""label""legend""li""map""mark""meta""meter""nav""noindex""noscript""ol""optgroup""output""p""param""picture""pre""q""rp""rt""ruby""s""samp""script""section""select""small""source""span""strong""sub""summary""sup""template""tbody""td""textarea""tfoot""th""thead""tr""track""u""ul""var""video""wbr""webview""svg""animate""animateMotion""animateTransform""circle""clipPath""defs""desc""ellipse""feBlend""feColorMatrix""feComponentTransfer""feComposite""feConvolveMatrix""feDiffuseLighting""feDisplacementMap""feDistantLight""feDropShadow""feFlood""feFuncA""feFuncB""feFuncG""feFuncR""feGaussianBlur""feImage""feMerge""feMergeNode""feMorphology""feOffset""fePointLight""feSpecularLighting""feSpotLight""feTile""feTurbulence""filter""foreignObject""g""image""line""linearGradient""marker""mask""metadata""mpath""path""pattern""polygon""polyline""radialGradient""rect""set""stop""textPath""tspan""use""view"ComponentClass<any, any>FunctionComponent<any>
button
classNamestringundefined
dangerouslySetInnerHTML
3 possibilities({ __html: string; } & { __html: stringTrustedHTML; })undefined
disabledbooleanundefined
emojistringundefined
hasDropdownArrowbooleanundefinedfalse
icon
335 possibilities"Accessible""AlanBlobHappy""AlanBlobHey""AlanBlobNoMouth""AlanBlobOpenMouth""AlanBlobSleeping""AlanLogo""Album""Alert""AlertAlt""Ambulance""AmbulanceSiren""Apple""AppleFilled""ArrowBottomLeft""ArrowBottomRight""ArrowDouble""ArrowDown""ArrowDownAlt""ArrowDropdown""ArrowDropright""ArrowDropup""ArrowLeft""ArrowLeftAlt""ArrowRight""ArrowRightAlt""ArrowTopLeft""ArrowTopRight""ArrowUp""ArrowUpAlt""ArrowUpDown""ArrowsLeftRight""Baby""BabyBottle""Back10""BadgeHeart""Bag""Bandaid""Bank""Bell""BellRinging""Bike""Bills""BirthdayCake""Block""BlurHeavy""BlurLight""BookHeart""Books""BooksAlt""BoxAdd""BoxArrowTopRight""Brain""Bubble""BubbleHeart""BubbleWithDots""Bus""Calculator""Calendar""CalendarClock""Camera""Card""Cards""Carrot""ChatAdd""ChatAddFilled""ChatBubble""ChatDots""Check""CheckAlt""CheckboxActive""CheckboxInactive""Child""Children""Close""CloseAlt""CloudDownload""CloudUpload""Coffee""Company""Copy""Cross""DashboardMenuRight""DashboardMenuRightFilled""Devices""DockToBottom""DockToRight""Doctor""DoctorBag""Document""DocumentHeart""DotMenu""DoubleCheck""Driving""Drop""Dumbbells""Ear""Email""Enterprise""Euro""ExclamationMark""ExitFullscreen""ExternalLink""Eye""EyeOff""EyeOffStroke""FaceId""Facebook""FatArrowRight""FeatherPen""Female""FileUnknown""Filter""Finger""Flag""Flash""FlashDouble""FlashNo""FlashOutline""FlashYes""FlipCamera""Foot""Forward10""FrameProfile""FrameSearch""Fullscreen""Gender""Gift""GiftMind""Glasses""Globe""GlobeEarth""Graph""GraphicEq""Hand""HangUp""Heart""HeartAdd""HeartCheck""HeartStroke""HeartStrokeAdd""Home""HomeHeart""HomeMap""Hospital""HospitalMap""Hourglass""Intercom""Journal""Key""Keyboard""Label""LaptopHealth""Leaves""Levers""Lifebuoy""LightBulb""Link""Linkedin""List""Location""Lock""LockOpen""Lotus""MagnifyingGlass""Mail""Male""Map""MapLocation""Masterclass""MedicalChat""MedicalChatHeart""Medium""Menu""MenuDot""Mic""MicOff""Microscope""MindCard""MindInbox""MinusAlt""MobilePhone""Moon""MoonSleepy""MusicOff""MusicOffSingle""MusicOn""MusicOnSingle""NearMe""NewPost""NoFlash""NoSmoking""None""NoteAdd""Notion""PanelLeft""PanelLeftDashed""Paperclip""Paperplane""Pause""Payfit""PeachFilled""Pencil""People""PeopleTwo""PersonAdd""PersonRemove""Phone""PhoneHangUp""PhonePlus""Picture""Piggy""Pill""Pills""Play""Plus""PlusAlt""PrevenirLogo""Printer""Profile""ProfileSettings""Psychology""Quotes""RaisingHands""React""Refresh""Reply""Rotate""RotateBox""RoundedArrowDown""RoundedArrowLeft""RoundedArrowRight""RoundedArrowUp""RoundedCheck""RoundedCross""RoundedEmpty""RoundedExclamationMark""RoundedFull""RoundedHalf""RoundedHelp""RoundedHelpLine""RoundedInfo""RoundedInfoLine""RoundedLess""RoundedPlay""RoundedPlus""RoundedQuarter""RoundedThreeQuarters""RoundedWarning""Ruler""RulerFilled""Save""Scale""ScanBarcode""Screenshare""ScreenshareStop""Seringe""Settings""Share""ShareAndroid""ShareIos""ShareScreen""Shield""ShieldCog""ShieldHeart""Snowflake""SocialFb""SocialFbLine""SocialGoogle""SocialLinkedin""SocialLinkedinLine""SocialTwitter""SocialTwitterLine""Sparkles""Spiral""SplitLeft""SplitRight""SsoGoogle""SsoPsc""Star""Stethoscope""StoreBasket""StrawberryFilled""Subtitles""Subway""Sun""Swipe""Target""ThumbDownStroke""ThumbUpStroke""ThumbsDown""ThumbsUp""Tick""Time""TimeSimple""Tooth""ToothBrace""TouchId""TpCard""Tram""Transmission""TransportationBus""TransportationTrain""Trash""TreeGraph""TriangularExclamationMark""TurtleShell""Twitter""Umbrella""UmbrellaHeart""Undo""VideoCall""VideoHeart""VideoHorizontal""VideoHorizontalOutlined""VideoOff""VideoOn""VideoPlural""VideoVertical""VolumeOff""VolumeOn""VolumeUp""Walking""Wallet""Warning""WarningAlt""Wind""Work""WorkHeart""World""Wrench""X""ZoomIn""ZoomOut"undefined
progressbooleanundefined
relstringundefined
size"xs""sm""md""lg"undefined
successbooleanundefined
variant
8 possibilities"primary""secondary""tertiary""danger""danger-secondary""plain""flat"undefined
primary
widthButtonDeprecatedWidthundefinedauto

Undocumented props

NameTypeDefault ValueDescriptionUsage count
colorany
cssany
endpointany
hrefany
idany
onClickany
styleany
targetany
titleany
toany
typeany
Edit this page
Previous
Alert
Next
Collection
  • General Guidelines
  • Variants
  • Sizes
  • Icons Variant
  • Progress and Success States
  • Playground