Image panels

The Image panels block in Greyd Forms allows you to add selectable image tiles to a form. These function similarly to radio buttons. Each tile includes an image and a label and is organized using a parent-child structure, where the parent block manages overall field behavior, and each child block represents an individual selectable panel.

Screenshot of an Image panels block inserted in the editor.

Images can be inserted directly in the editor by clicking on the image placeholder. Likewise, the label text beneath each image can be edited inline — just click into the text field and begin typing. Both the individual panel labels and the general label have style options like bold, italic, inline style options and you can add links and a trigger.

Settings

Screenshot of the Settings tab of the Image panels block, explained in the following paragraphs.

In the General section, you can change the automatically populated field name that is submitted with the form. This is also where you can mark the field as required or enable multiselection. Please note that the multiselect mode is not accessible to screen readers and should be used with caution in accessibility-sensitive contexts.

The Assistance section provides a tooltip input. This tooltip will appear next to the label.

The block also supports Animations. In the Advanced section, you can find settings for additional CSS classes, the Greyd Styles Class and toggles to hide the block per breakpoint.

Styles

Screenshot of the Styles tab of the Image panels block, explained in the following paragraphs.

Under Styles, you can choose from three predefined base styles, which are managed globally in the Global Styles settings: primary field, secondary field, and no style.

The Dimension section includes padding controls for all sides and margin controls for top and bottom, provided by WordPress Core.

In the Layout section, you can configure the flexbox-based layout:

  • Arrangement: choose how the tiles are arranged — either side by side or stacked.
  • Define the image (or “icon”) position relative to the label. Options include: Top, Right, Bottom, and Left.

The Label settings allow you to define the label’s font size and color. The font size setting provides multiple different option, see the Range Unit Control component for more details. You also have the option to change the hover color for label settings, see the pseudo-classes documentation for more details.

In the Colors section, you can define:

  • the tile background color
  • the text color
  • the opacity of the entire panel in percent

The colors can be individually configured for hover and active styles as well.

The Sizes section includes options to change the image height and the tile width. There is also a Same height toggle, which ensures uniform height across all tiles. Both height and width offer all options of the Range Unit Control component.

Under Spaces, you can define the spacing between the image and the tile content, also individually per breakpoint.

The Typography section lets you set the font size of the tile text. You can choose between globally defined presets and custom values.

In the Border Radius section, you can configure the rounding of tile corners, for all four sides or individually.

Lastly, the Border section lets you define border color, border styles and border width for the tile. The border can also be styled differently on hover, see the hover pseudo-class documentation.

Image panel

Screenshot of the settings tab of an individual image panel, explained in the following paragraphs.

When selecting an individual image panel, you can customize the value of the panel. By default, the value is generated from the label but can be adjusted if you work with special characters for example.

Under Images, you can define different images for normal, hover and active states. If an image is selected, you see a preview here too. For each image, you can add a custom alternative text.

The block also supports Animations. In the Advanced section, you can find settings for additional CSS classes and toggles to hide the block per breakpoint.

Video

You are currently viewing a placeholder content from Vimeo. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.

More Information

Last updated: