ButtonRenderer

Example
Button with Custom Renderer
Theme: seekAnz
Theme: seekBusiness
Theme: jobsDbRebrand
Theme: jobsDb
Theme: jobStreet
Theme: jobStreetClassic
Theme: wireframe
Code:
import React from "react"
import { Link } from "react-router-dom"
import { ButtonRenderer } from "braid-design-system"

export default () => (
  <ButtonRenderer>
    {(ButtonChildren, buttonProps) => (
      <Link to="#" {...buttonProps}>
        <ButtonChildren>Link button</ButtonChildren>
      </Link>
    )}
  </ButtonRenderer>
)

Required props

children
(ButtonChildren: ComponentType<ButtonChildrenProps>, styleProps: { style: CSSProperties; className: string; }) => ReactNode

Optional props

weight
"regular" | "strong" | "weak"
loading
boolean

Further References