mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
feat(text): add text component and documentation
also adds to the breaking changes file
This commit is contained in:
31
packages/core/src/components.d.ts
vendored
31
packages/core/src/components.d.ts
vendored
@ -2870,6 +2870,37 @@ declare global {
|
||||
}
|
||||
|
||||
|
||||
import {
|
||||
Text as IonText
|
||||
} from './components/text/text';
|
||||
|
||||
declare global {
|
||||
interface HTMLIonTextElement extends IonText, HTMLElement {
|
||||
}
|
||||
var HTMLIonTextElement: {
|
||||
prototype: HTMLIonTextElement;
|
||||
new (): HTMLIonTextElement;
|
||||
};
|
||||
interface HTMLElementTagNameMap {
|
||||
"ion-text": HTMLIonTextElement;
|
||||
}
|
||||
interface ElementTagNameMap {
|
||||
"ion-text": HTMLIonTextElement;
|
||||
}
|
||||
namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
"ion-text": JSXElements.IonTextAttributes;
|
||||
}
|
||||
}
|
||||
namespace JSXElements {
|
||||
export interface IonTextAttributes extends HTMLAttributes {
|
||||
color?: string;
|
||||
mode?: 'ios' | 'md';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
import {
|
||||
Textarea as IonTextarea
|
||||
} from './components/textarea/textarea';
|
||||
|
Reference in New Issue
Block a user