Button component written in HTL.
- Linkable to content pages, external URLs or page anchors.
- Allows an icon identifier to be configured for rendering an icon.
- Style System support.
The Button component uses the com.adobe.cq.wcm.core.components.models.Button
Sling model as its Use-object.
The following properties are written to JCR for the Button component and are expected to be available as Resource
properties:
./jcr:title
- defines the button text./link
- defines the button link./icon
- defines an icon identifier for rendering an icon./accessibilityLabel
- defines an accessibility label for the button./id
- defines the component HTML ID attribute.
BLOCK cmp-button
ELEMENT cmp-button__text
ELEMENT cmp-button__icon
MOD cmp-button__icon--<icon>
Icon styling must be done by users of the Core Components. Here's an example from the Core Components Library.
- Vendor: Adobe
- Version: v1
- Compatibility: AEM 6.3
- Status: production-ready
- Documentation: https://www.adobe.com/go/aem_cmp_button_v1
- Component Library: https://www.adobe.com/go/aem_cmp_library_button
- Author: Richard Hand
If you were involved in the authoring of this component and are not credited above, please reach out to us on GitHub.