--- author: Mark Dumay title: Components date: 2023-09-23 description: Use shortcodes to add predefined components powered by external libraries. tags: ["bootstrap", "shortcode"] thumbnail: url: img/puzzle.jpg author: Ryoji Iwata authorURL: https://unsplash.com/@ryoji__iwata origin: Unsplash originURL: https://unsplash.com/photos/5siQcvSxCP8 modules: ["katex", "leaflet", "lottie"] --- Hinode provides several shortcodes on top of the common [Bootstrap elements]({{< relref "bootstrap-elements" >}}). Refer to the [official documentation]({{< param "links.hinode_docs" >}}) for more details. ## Animation As an example, the following shortcode shows an animation that plays on hover. {{< example lang="hugo" >}} {{}} {{< /example >}} ## Formula (KaTeX) As an example, the following markdown renders two formulas using the KaTeX typesetting library. {{< example lang="markdown" >}} This is an inline $-b \pm \sqrt{b^2 - 4ac} \over 2a$ formula This is not an inline formula: $$x = a_0 + \frac{1}{a_1 + \frac{1}{a_2 + \frac{1}{a_3 + a_4}}}$$ $$\forall x \in X, \quad \exists y \leq \epsilon$$ {{< /example >}} ## Map As an example, the following shortcode displays an interactive map of the city of Amsterdam. {{< example lang="hugo" >}} {{}} {{< /example >}}