# Unit Controls

Elementor Core Basic

Unit controls are used to return unit based values.

# Using Unit Controls

The following controls are included in Elementor:

  • Slider – A draggable scale to choose between a range of numeric values.
  • Dimensions – A component with four number fields, suitable for setting top/right/bottom/left settings.

# Extending Unit Controls

To create your own unit control, you need to extend the \Elementor\Control_Base_Units abstract class:

 


class Elementor_Test_Control extends \Elementor\Control_Base_Units {
}
1
2