mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import { JSX } from '@ionic/core';
|
|
import { JSX as IoniconsJSX } from 'ionicons';
|
|
|
|
import { /*@__PURE__*/ createReactComponent } from './createComponent';
|
|
|
|
export const IonTabButtonInner = /*@__PURE__*/ createReactComponent<
|
|
JSX.IonTabButton & { onIonTabButtonClick?: (e: CustomEvent) => void },
|
|
HTMLIonTabButtonElement
|
|
>('ion-tab-button');
|
|
export const IonTabBarInner = /*@__PURE__*/ createReactComponent<
|
|
JSX.IonTabBar,
|
|
HTMLIonTabBarElement
|
|
>('ion-tab-bar');
|
|
export const IonBackButtonInner = /*@__PURE__*/ createReactComponent<
|
|
Omit<JSX.IonBackButton, 'icon'>,
|
|
HTMLIonBackButtonElement
|
|
>('ion-back-button');
|
|
export const IonRouterOutletInner = /*@__PURE__*/ createReactComponent<
|
|
JSX.IonRouterOutlet & {
|
|
setRef?: (val: HTMLIonRouterOutletElement) => void;
|
|
forwardedRef?: React.RefObject<HTMLIonRouterOutletElement>;
|
|
},
|
|
HTMLIonRouterOutletElement
|
|
>('ion-router-outlet');
|
|
|
|
// ionicons
|
|
export const IonIconInner = /*@__PURE__*/ createReactComponent<
|
|
IoniconsJSX.IonIcon,
|
|
HTMLIonIconElement
|
|
>('ion-icon');
|