# Features

### Shortcode and Block Support

Whether using the classic or block editor, you can use AlertsDLX to output beautiful alert boxes.

{% content-ref url="shortcode-usage" %}
[shortcode-usage](https://docs.dlxplugins.com/alertsdlx/shortcode-usage)
{% endcontent-ref %}

### Four Alert Blocks - and many styles to choose from

The plugin comes with blocks inspired by three UI component libraries:

* Bootstrap
* Chakra
* Material
* Shoelace

Each has their own unique style and variations, which can be configured on the block itself or in the sidebar options.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2Fbe6p33IxTkcD0V92suKB%2Falerts-dlx-editor-chakra-side-options.jpg?alt=media&#x26;token=79637047-cab2-4375-b6d9-58353e6148d6" alt=""><figcaption><p>Chakra Alert Sidebar Options</p></figcaption></figure>

### Styles make the block customizable

Each block has several theme styles to choose from. For example, the Bootstrap alert block has a handful of available style options.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2FhzNP4Mu6zbw3f4ttyAzR%2Falerts-dlx-editor-block-alert-types-bootstrap.jpg?alt=media&#x26;token=28ac9398-d917-4171-98d5-99c08890e30c" alt=""><figcaption><p>Bootstrap Alert Block with Several Style Options</p></figcaption></figure>

Please view the example below how multiple blocks can look depending on the style chosen.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2FyGIhyCwJzQhgJfiL3OVG%2Falerts-dlx-editor-three-blocks.jpg?alt=media&#x26;token=11c62346-a2cc-4f6b-8be5-18688b3f86b8" alt=""><figcaption><p>Different Alert Styles</p></figcaption></figure>

### Style Variants

In addition to different styles, each block has its own variants.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2F22hmzBAyomJEKyd9Ostm%2Falerts-dlx-editor-chakra-warning-solid-variant.jpg?alt=media&#x26;token=ea6ea5e0-63e2-4c56-9149-ac7f55e13ab8" alt=""><figcaption><p>Chakra Alert Block With Warning Style and Solid Variant</p></figcaption></figure>

Here's an example of a centered variant of the Warning style.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2F8nx9SuKuv2wF3Hq5d721%2Falerts-dlx-editor-chakra-warning-centered-variant.jpg?alt=media&#x26;token=a6f0ec5d-9ee2-4240-ba0f-7502e1e8eded" alt=""><figcaption><p>Chakra UI Centered Variant (Warning style)</p></figcaption></figure>

### Icon Selector

AlertsDLX comes with a custom icon selector that allows for easy insertion of different icons.

Simply click on the icon and you'll be able to select a new one.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2FXHje4nDEGM5vefvxvU1T%2Falerts-dlx-editor-block-icon-selector.jpg?alt=media&#x26;token=ecb51391-8c8f-4ff7-a0e1-1001c4d3bb86" alt=""><figcaption><p>The Icon Selector Makes Selecting an Icon Easy</p></figcaption></figure>

In addition to icons, you can also insert your own SVGs instead of the pre-selected icons.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2F96vT8KUL9y67VuZ3HWd1%2Falerts-dlx-editor-icon-svg-selector.jpg?alt=media&#x26;token=4baf5616-3737-4316-84d6-be69e377d5e2" alt=""><figcaption><p>Insert Custom SVG Code for Custom Icons</p></figcaption></figure>

{% hint style="info" %}
**Inspired by GenerateBlocks**: The icon selector and SVG compatibility was inspired by the [GenerateBlocks](https://wordpress.org/plugins/generateblocks/) plugin.
{% endhint %}

AlertsDLX has icons from the following sources.

* [Google Fonts Material Icons](https://fonts.google.com/icons)
* [Chakra UI Icons](https://github.com/chakra-ui/chakra-ui/tree/main/packages/components/icons/src) (GitHub)
* [Bootstrap Icons](https://icons.getbootstrap.com/)

### Disable or Enable Elements

With the block options, you can enable or disable the title, description, icon, and button.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2FImSsm1wqwXbpmBxkHrgE%2Falerts-dlx-editor-alert-settings-side-panel.jpg?alt=media&#x26;token=73c51713-0320-48d2-a70e-e73361c9d07b" alt=""><figcaption><p>Enable or Disable Alert Options</p></figcaption></figure>

For example, a button isn't shown by default. You can enable a button using the above options.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2F1mOYJXVAnQUa1tqCSXn0%2Falerts-dlx-editor-chakra-left-accent-w-button.jpg?alt=media&#x26;token=883df397-c57e-4257-ae16-7cb5b7220e24" alt=""><figcaption><p>Chakra Alert with a Button</p></figcaption></figure>

{% hint style="info" %}
**Buttons**: the UI libraries didn't include button styles, but CTAs are important for alerts, so it was added in as a feature.
{% endhint %}

### Button link options

With the inclusions of buttons comes a mechanism to link out to your resource. Add a link and set it to launch in a new window, and modify the `rel` attributes for nofollow or sponsored links.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2FEU05deBqdTZAUJIN2FZq%2Falerts-dlx-editor-button-link-options.jpg?alt=media&#x26;token=86101197-a87b-4ae8-a1b4-8825442df8e7" alt=""><figcaption><p>Button Link Options</p></figcaption></figure>

### Set the container's maximum width

The block has different alignment options, but if you choose a centered, wide, or full-width alignment, you may find the block to be too wide when viewed on the front-end.

With a Maximum Width option, you can adjust how wide your alert block can be when viewed at wider widths.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2FYN2A8nQxT8ikPqZpyFGe%2Falerts-dlx-editor-max-width-option.jpg?alt=media&#x26;token=5b5c57f5-919a-4212-9a8c-c5288b026c5a" alt=""><figcaption><p>Maximum Width Option</p></figcaption></figure>

Each width can be adjusted via pixel, percentage, or viewport width.

### Change the base font size

The styles for the alert blocks are all relative to a base font size. You can adjust this base to be smaller or bigger depending on your needs.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2F4oCGxH9bs8DOSvHLAUXh%2Falerts-dlx-editor-adjust-font-size.jpg?alt=media&#x26;token=28c7c5bf-1241-4494-a6f8-e282e008a562" alt=""><figcaption><p>Adjust a Base Font Size</p></figcaption></figure>

### Typography

The Lato Google Font is used on the front-end to allow the alerts to stand out even more.

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2F4FBhf4r9CUtFd6uwVdxH%2Falerts-dlx-editor-chakra-solid-preview.jpg?alt=media&#x26;token=e5c7db65-dea7-4ace-a007-88d007848a5a" alt=""><figcaption><p>Chakra Solid Info Alert Block</p></figcaption></figure>

<figure><img src="https://470724960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJGO4Gff9TG8gz0gouFdk%2Fuploads%2Fd1VF7qvl1KglotvA3DLb%2Falerts-dlx-editor-bootstrap-warning-preview.jpg?alt=media&#x26;token=3c40efc1-2b62-4418-82f0-eb955f00af7e" alt=""><figcaption><p>Bootstrap Warning Alert Block</p></figcaption></figure>
