src/helpers/Element.php
public static function conditionalButton($leftLabel, $rightLabel, $options = [])
    {
        $lOptions = ArrayHelper::remove($options, 'left', []);
        $rOptions = ArrayHelper::remove($options, 'right', []);
        $oOptions = ArrayHelper::remove($options, 'or', []);

        Ui::addCssClasses($options, ['ui', 'buttons']);
        Ui::addCssClasses($lOptions, ['ui', 'button']);
        Ui::addCssClasses($rOptions, ['ui', 'button']);
        Ui::addCssClass($oOptions, 'or');

        $lines = [];
        $lines[] = static::button($leftLabel, $lOptions);
        $lines[] = Ui::tag('div', '', $oOptions);
        $lines[] = static::button($rightLabel, $rOptions);

        return Ui::tag('div', implode("\n", $lines), $options);
    }
public static function conditionalButton($leftLabel, $rightLabel, $options = [])
    {
        $lOptions = ArrayHelper::remove($options, 'left', []);
        $rOptions = ArrayHelper::remove($options, 'right', []);
        $oOptions = ArrayHelper::remove($options, 'or', []);

        Ui::addCssClasses($options, ['ui', 'buttons']);
        Ui::addCssClasses($lOptions, ['ui', 'button']);
        Ui::addCssClasses($rOptions, ['ui', 'button']);
        Ui::addCssClass($oOptions, 'or');

        $lines = [];
        $lines[] = static::button($leftLabel, $lOptions);
        $lines[] = Ui::tag('div', '', $oOptions);
        $lines[] = static::button($rightLabel, $rOptions);

        return Ui::tag('div', implode("\n", $lines), $options);
    }
Generates a [conditional button](http://semantic-ui.com/elements/button.html#conditionals)

@param string $leftLabel the label to appear on the left side
@param string $rightLabel the label to appear on the right side
@param array $options the tag options in terms of name-value pairs

@return string the generated conditional button tag