Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.68 KB

File metadata and controls

30 lines (24 loc) · 1.68 KB
description
A button with icon and text

Button

👁️ PREVIEW

{%
  include button.html
  type="github"
  link="some_github_handle"
  icon="fa-brands fa-github"
  text="Follow us on GitHub"
  tooltip="Follow us on GitHub for new releases"
  flip=true
  style="bare"
%}
ParameterDescriptionDefault
typeWhen specified, looks up default/fallback values for unspecified parameters from /_data/types.yaml.
linkURL to link to, without any prefixes like @, www., etc.From type
iconIcon to show.From type
textText next to icon.From type
tooltipText to show when hovering over the button.From type
flipFlip the order of icon and text.false (icon left of text)
styleVisual style of the button. Set to bare for a more plain style.Typical button appearance

{% hint style="info" %} Tip: Prefer starting with just type, and only specify the parameters you need to override. {% endhint %}

{% hint style="info" %} Defaults with type only get applied to completely unspecified parameters. If you need to force no text, for example, just set text="". {% endhint %}