protected override void ProcessRecord()
        {
            var control = new PsDatePicker();

            SetControlProps(control);

            control.Label       = Label;
            control.Value       = Value;
            control.Placeholder = Placeholder;
            control.OnChange    = OnChange;

            if (AllowTextInput.IsPresent)
            {
                control.AllowTextInput = AllowTextInput.ToBool();
            }

            if (Required.IsPresent)
            {
                control.Required = Required.ToBool();
            }

            if (Underlined.IsPresent)
            {
                control.Underlined = Underlined.ToBool();
            }

            if (Borderless.IsPresent)
            {
                control.Borderless = Borderless.ToBool();
            }

            WriteObject(control);
        }
        protected override void ProcessRecord()
        {
            var control = new PsTextBox();

            SetControlProps(control);

            control.Label        = Label;
            control.Value        = Value;
            control.Placeholder  = Placeholder;
            control.ErrorMessage = ErrorMessage;
            control.Description  = Description;
            control.Prefix       = Prefix;
            control.Suffix       = Suffix;
            control.Icon         = Icon;
            control.IconColor    = IconColor;
            control.OnChange     = OnChange;

            if (Align.HasValue)
            {
                control.Align = Align.Value;
            }

            if (Multiline.IsPresent)
            {
                control.Multiline = Multiline.ToBool();
            }

            if (Password.IsPresent)
            {
                control.Password = Password.ToBool();
            }

            if (Required.IsPresent)
            {
                control.Required = Required.ToBool();
            }

            if (ReadOnly.IsPresent)
            {
                control.ReadOnly = ReadOnly.ToBool();
            }

            if (AutoAdjustHeight.IsPresent)
            {
                control.AutoAdjustHeight = AutoAdjustHeight.ToBool();
            }

            if (Underlined.IsPresent)
            {
                control.Underlined = Underlined.ToBool();
            }

            if (Borderless.IsPresent)
            {
                control.Borderless = Borderless.ToBool();
            }

            WriteObject(control);
        }