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

Buttons are clickable elements that are used to trigger actions.

List of all CSS Identifiers.

IdentifierDescription
button.wfp--btnBasic styling for <button> elements, crucial for overall appearance and layout.
button.wfp--btn--icon-reverseStyle for buttons with reversed icons, significant for right-to-left (RTL) language support and icon positioning.
a, button.wfp--btn--icon-onlyStyling for icon-only buttons, key for minimalistic UI designs where icons replace text labels.
.wfp--btn--primaryPrimary button styling, vital for primary actions in the UI, such as 'Submit' or 'Save'. Includes colour and state variations.
.wfp--btn--primary-solidSolid variant of primary buttons, crucial for high-visibility areas in the UI.
.wfp--btn--secondarySecondary button styling, important for less prominent actions, balancing the UI and providing alternative options.
.wfp--btn--secondary-solidSolid version of secondary buttons, used to distinguish from primary buttons while maintaining visibility.
.wfp--btn--tertiaryTertiary button styling, useful for low-priority actions in the UI, offering a subtle option.
.wfp--btn--ghostGhost button styling, essential for less intrusive buttons, often used for secondary or tertiary actions with minimal UI impact.
.wfp--btn--ghost-solidSolid ghost buttons, blending the minimalism of ghost buttons with the emphasis of solid buttons.
.wfp--btn--dangerDanger button styling, crucial for actions like 'Delete' or 'Cancel', signaling potential risks or important negative actions.
.wfp--btn--danger--primaryPrimary styling for danger buttons, making critical actions visually distinct.
.wfp--btn--smSmall button styling, important for UIs with space constraints or for less prominent actions.
.wfp--btn--lgLarge button styling, used for prominent actions in the UI, offering better visibility and easier interaction, especially on touch devices.
.wfp--btn--all-capsStyles for uppercase text buttons, used for emphasis or stylistic preference, impacting the visual hierarchy in the UI.
.wfp--btn--secondary + .wfp--btn--primaryStyle for a secondary button followed by a primary button, important for layout and spacing in forms or action groups.
.wfp--btn.wfp--skeletonSkeleton state styling for buttons, used for loading states or placeholders, providing visual feedback during content loading.

References

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