mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
32 lines
783 B
TypeScript
32 lines
783 B
TypeScript
import { Component, Prop } from '@stencil/core';
|
|
import { Mode } from '../..';
|
|
|
|
|
|
@Component({
|
|
tag: 'ion-note',
|
|
styleUrls: {
|
|
ios: 'note.ios.scss',
|
|
md: 'note.md.scss'
|
|
},
|
|
host: {
|
|
theme: 'note'
|
|
}
|
|
})
|
|
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"`.
|
|
* For more information, see [Theming your App](/docs/theming/theming-your-app).
|
|
*/
|
|
@Prop() color!: string;
|
|
|
|
/**
|
|
* The mode determines which platform styles to use.
|
|
* Possible values are: `"ios"` or `"md"`.
|
|
* For more information, see [Platform Styles](/docs/theming/platform-specific-styles).
|
|
*/
|
|
@Prop() mode!: Mode;
|
|
|
|
}
|