Skip to content

Instantly share code, notes, and snippets.

@jakedohm
Created May 7, 2020 17:41
Show Gist options
  • Save jakedohm/fec7f32d87b4b84cb4533cbcf6ea5927 to your computer and use it in GitHub Desktop.
Save jakedohm/fec7f32d87b4b84cb4533cbcf6ea5927 to your computer and use it in GitHub Desktop.
<script>
export default {
props: {
color: {
type: String,
default: 'teal',
validator: value => ['teal', 'orange'].includes(value)
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment