Icon Schema
Last updated
Was this helpful?
Last updated
Was this helpful?
Schemas are structured definitions that describe the format, rules, and relationships of data within a system. They ensure consistency and validate inputs. In Beefree SDK, the Simple Icons Schema defines a block used to display one or more icons alongside optional labels, titles, and links. It allows layout control over icon size, positioning, and interaction behavior. This documentation breaks down the schema's properties, requirements, and usage examples to help you implement and customize icon blocks effectively.
Reference the for more information.
This section summarizes the purpose and key characteristics of the Simple Icons Schema.
Schema Name: Simple Icons
Purpose: Defines icon-based elements with configurable image, text, positioning, and linking.
Mandatory Fields: image
, width
, height
, textPosition
(per icon)
Related Schemas:
definitions.schema.json
(for padding definitions)
Below is the JSON Schema definition and a detailed breakdown of each property.
The following tables list the field descriptions along with their corresponding data type, whether or not they are mandatory, and their description.
Level 1: simple_icons.schema.json
Properties
icons
array
The icons array
customFields
object
Custom fields for the icons
locked
boolean
Whether the module is locked
Note: Not available for Single Content AddOn
Level 2: icons
Array Properties
image
string
The URL of the icon image
width
string
The width of the icon
height
string
The height of the icon
textPosition
enum
The position of the text
alt
string
The alt text for the icon
text
string
The text for the icon
title
string
The title of the icon
href
string
The URL the icon links to
target
enum
The target of the link
Reference an example of the schema in the following code snippet.
Consider the following when working with the Simple Icons Schema in Beefree SDK:
Accessibility: Use alt
and title
fields to improve usability and accessibility.
Responsiveness: Icons and labels should adapt well in mobile layouts using textPosition
.
Consistency: Ensure icon dimensions (height
, width
) are aligned for visual harmony.
Extensibility: Use customFields
for non-standard properties.
No
No
No
Yes
Yes
Yes
Yes
No
No
No
No
No