Skip to main content

Button components

Button#

The Button component renders a button.

<Button />

Props#

PropDescription

children

Renders content of the component.

className

A class name that is applied to the component.

isLoading

undefined | boolean

If true, the component has loading state.

Persist button#

The PersistButton component renders a persist button.

<PersistButton />

Props#

PropDescription

children

Renders content of the component.

Anchor button#

The AnchorButton component renders an anchor button.

<AnchorButton href="#id">Go to id</AnchorButton>

Props#

PropDescription

href

undefined | string

The link to which the user is redirected when the button is clicked.

children

Renders content of the component.

Page link button#

<PageLinkButton to="">Go to Page</PageLinkButton>

Props#

PropDescription

to

undefined | string

The route to which the user is redirected when the button is clicked.

children

Renders content of the component.

Clear field button#

<ClearFieldButton field="name" label="Clear name" />

Props#

PropDescription

field

string

The name of the field to be cleared on click.

Required

label

ReactNode

The label for the field.

Required

Delete entity button#

The DeleteEntityButton component renders a button, which deletes closesed entity.

<DeleteEntityButton />

Props#

PropDescription

children

Renders content of the component.