Skip to content

Instantly share code, notes, and snippets.

@Dornhoth
Last active June 12, 2020 16:09
Show Gist options
  • Select an option

  • Save Dornhoth/0e5de1606332fb18b0f03d87908dbb60 to your computer and use it in GitHub Desktop.

Select an option

Save Dornhoth/0e5de1606332fb18b0f03d87908dbb60 to your computer and use it in GitHub Desktop.
$color-red: #E23636;
$spacing: 16px;
:host {
border-radius: 3px;
border: $color-red 1px solid;
color: $color-red;
padding: $spacing;
margin: $spacing;
display: block;
}
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-error-card',
templateUrl: './error-card.component.html',
styleUrls: ['./error-card.component.scss']
})
export class ErrorCardComponent {
@Input() text = 'An unexpected error occurred.';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment