Conditional rendering of vue component parameters

this is an element component of vue. Can the parameter type render conditionally?
I want to decide whether to type= "success" or type= "danger" based on a Boolean true or false

      <el-button size="mini" type="success" >
      </el-button>
Apr.07,2021

    <el-button size="mini" :type="true == true? 'sucess' : 'error'" >
      </el-button>

< el-button size= "mini": type='btnType? "success": "danger" > < / el-button >
like this?

Menu