Components

StyledButton

<StyledButton />

Constructor

# <StyledButton />

Base button component

View Source admin-bro/src/frontend/components/ui/styled-button.tsx, line 82

Examples

Regular button

Primary button

With icon

Type Definitions

object

# Props

Properties:
Name Type Attributes Description
primary boolean

If button should be presented as a primary action

children ReactNode

Body of the button

onClick OnClickHandler <optional>

click callback

as string <optional>

As which element it should be rendered. For example: as: 'a' or as: 'button'

to string

Href

type string <optional>

View Source admin-bro/src/frontend/components/ui/styled-button.tsx, line 92