mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
feat(components): add missing button/a props to components that render them (#17883)
Adds the following properties to the components listed under them: `rel`, `download`, `target`: - anchor - button - card - fab-button - item-option - item - tab-button `disabled`: - back-button - menu-button `type`: - back-button - item-option - menu-button - segment-button fixes #16848 closes #16889 Co-authored-by: bitflower <matthias.max@bitflower.net>
This commit is contained in:
20
core/src/utils/element-interface.ts
Normal file
20
core/src/utils/element-interface.ts
Normal file
@ -0,0 +1,20 @@
|
||||
// import { RouterDirection } from '../interface';
|
||||
|
||||
// TODO router direction
|
||||
// The interfaces in this file are used to make sure our components
|
||||
// have the correct properties defined that are needed to pass to
|
||||
// the native HTML elements they render
|
||||
|
||||
export interface AnchorInterface {
|
||||
href: string | undefined;
|
||||
target: string | undefined;
|
||||
rel: string | undefined;
|
||||
download: string | undefined;
|
||||
// routerDirection: RouterDirection;
|
||||
}
|
||||
|
||||
export interface ButtonInterface {
|
||||
type: 'submit' | 'reset' | 'button';
|
||||
disabled: boolean;
|
||||
// routerDirection: RouterDirection;
|
||||
}
|
Reference in New Issue
Block a user