Line Height
Learn more about how to enable and configure Line height for your end users.
Overview
Beefree SDK offers the option to custom the Line height for designs within the builder. This provides end users with greater control over typography and design. The Line height widget includes both preset values with clear indicators, and a custom input field for precise adjustments. This degree of control supports workflows that require consistent, accessible, and brand-compliant typography.
Benefits
Line height includes the following benefits:
Clear Presets – Easily select from predefined Line height values for quick adjustments.
Custom Input – Enter exact Line height values (in percentage) for fine-tuned control.
Full Compatibility – Works smoothly with co-editing, history tracking, and undo/redo functions.
CSS Customization – Ensure brand consistency with advanced CSS styling options.
The following GIF displays an example of how your application's end users can utilize Line height throughout their content creation process.

Prerequisites
Line height is available in the Beefree SDK builder by default. The only requirement is that you have the builder embedded with your application and can load it successfully.
Advanced Permissions
You can use Advanced Permissions with Line height to show or hide the widget for the following module types:
Title
The following code snippet shows an example of how to set advanced permissions for Line height in the Title content block.
Paragraph
The following code snippet shows an example of how to set advanced permissions for Line height in the Paragraph content block.
List
The following code snippet shows an example of how to set advanced permissions for Line height in the List content block.
Button
The following code snippet shows an example of how to set advanced permissions for Line height in the Button content block.
Table
The following code snippet shows an example of how to set advanced permissions for Line height in the Table content block.
Form
The following code snippet shows an example of how to set advanced permissions for Line height in the Form content block.
Custom CSS Classes
You can use the following CSS classes to customize styles related to Line height on the Frontend of your application.
line-height-select--csfor the select elementline-height-select-wrapper--csfor the select element wrapperline-height-custom-input-wrapper--csfor the custom input wrapperline-height-custom-input--csfor the custom input element
Customizable Labels
You can use customizable labels to override the default text for Line height in the Beefree SDK builder and add your own.
bee-line-height-widget-custom-optionallows users to customize the label for the last option in theSelectcomponent. The default value isCustom.
Additional Consideration
Consider the following behaviors when using the Line height widget:
The minimum value is 0.5.
The maximum value is 3.
When you select the Custom option from the Line height drop-down menu, you can click plus (+) or minus (-) to increase or decrease the Line height value. The Line height value will increase or decrease in increments of 0.1.
If you manually type in a value with two numbers after the decimal, for example 0.57, the Line height will be rounded to the first number as the final value. So, the final value would be 0.6.
Last updated
Was this helpful?

