Use the mixin inside of a ::before
or ::after
pseudo element.
E.g.:
div::before {
@include svg-triangle(
$width: 30px, // any unit
$height: 20px, // any unit
$borders: left right, // left, right, bottom, or any combination of the 3
$border-color: #cccccc, // hex