Buttons & Links API Reference

Button

Source
Button(*c: Union[str, fastcore.xml.FT], cls: Union[str, enum.Enum] = <ButtonT.default: 'uk-btn-default'>, submit=True, **kwargs) -> fastcore.xml.FT

Button with Styling (defaults to submit for form submission)

Params
  • c Contents of Button tag (often text)

  • cls Classes in addition to Button styling (use ButtonT for built in styles)

  • submit Whether the button should submit a form

  • kwargs

Returns: Button(..., cls='uk-btn')


ButtonT

Options for styling Buttons

Option Value Option Value Option Value
default uk-btn-default ghost uk-btn-ghost primary uk-btn-primary
secondary uk-btn-secondary destructive uk-btn-destructive text uk-btn-text
link uk-btn-link xs uk-btn-xs sm uk-btn-sm
lg uk-btn-lg xl uk-btn-xl icon uk-btn-icon

AT

Link styles from https://franken-ui.dev/docs/link

Option Value Option Value
muted uk-link-muted text uk-link-text
reset uk-link-reset primary uk-link text-primary hover:text-primary-focus underline
classic text-blue-600 hover:text-blue-800 underline