disabled()

@mixin disabled($name, $opacity: 0.5) {
  &.disabled,
  &:disabled,
  &.#{$name}-disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: $opacity;
  }
}

Last updated