BridgeBeta
  • Brand
  • Digital Assets
    Foundations
    Icons
    Components
    Templates
  • Resources
    Design Tokens
    How-tos
    Best Practices
    Libraries
    Accessibility
    Products List
  • Support
    • Overview
    • Actions
      • Overview
      • Button
      • ContextMenu
      • Link
    • Controls
      • Overview
      • Checkbox
      • Tag
      • Toggle
    • Forms
      • Overview
      • DatePicker
      • FileUploader
      • Input
      • NumberInput
      • RadioButton
      • Search
      • Select
      • Slider
      • TextArea
      • TextInput
    • Hooks
      • useIsomorphicLayoutEffect
      • useMediaQuery
      • useSettings
    • Navigation
      • Overview
      • AnchorNavigation
      • BannerNavigation
      • Breadcrumb
      • Footer
      • InfoBar
      • MainNavigation
      • SecondaryNavigation
      • StepNavigation
      • SubNavigation
    • Overlay
      • Overview
      • Credits
      • Modal
      • ModalWrapper
      • Notification
      • Tooltip
    • Structure
      • Overview
      • Accordion
      • AuthLayout
      • Avatar
      • Callout
      • Card
      • ContentSwitcher
      • Empty
      • Hero
      • InlineLoading
      • Item
      • List
      • Loading
      • mdxComponents
      • Module
      • Pagination
      • ReadMore
      • Story
      • Table
      • Tabs
      • Text
      • Unit
      • User
      • WFPCoreProvider
      • Wrapper
Components
Actions
Button

Button

  • Design
  • Code
  • Props
  • css

Button

Editable Example

import { Button } from "@wfp/react";

() => {
  return <Button>Button</Button>;
};

PropDefaultDescriptionValue

children

ReactNode
–

Content of the Button

small

boolean
–

Specify whether the Button should be a small variant

large

boolean
–

Specify whether the Button should be a large variant

btnSolid

boolean
–

Specify btnSolid to buttons on solid background to make it stand out

kind

ButtonKind
–

Specify the kind of Button you want to create

href

string
–

Optionally specify an href for your Button to become an element

icon

ReactNode |ComponentType<any>
–

Specify an icon to include in the Button through an object representing the SVG data of the icon, similar to the Icon component

iconReverse

boolean
–

Optionally specify an href for your Button to become an element

iconDescription

string
–

disabled

boolean
–

Specify whether the Button should be disabled, or not

tabIndex

number
–

Optional prop to specify the tabIndex of the Button

target

HTMLAttributeAnchorTarget
–

type

"button" |"reset" |"submit"
–

useFlexbox

boolean
–

id

string
–

download

string |boolean
–

On this page

  • Button

References

  • Storybook
Storybook
Figma library
Contact us
2025 © World Food Programme