import { Component, Prop } from '@stencil/core'; import { Color, Mode } from '../../interface'; import { createColorClasses } from '../../utils/theme'; @Component({ tag: 'ion-note', styleUrls: { ios: 'note.ios.scss', md: 'note.md.scss' }, shadow: true }) export class Note { /** * The color to use from your Sass `$colors` map. * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. */ @Prop() color?: Color; /** * The mode determines which platform styles to use. * Possible values are: `"ios"` or `"md"`. */ @Prop() mode!: Mode; hostData() { return { class: { ...createColorClasses(this.color) } }; } render() { return ; } }