Skip to content

Commit

Permalink
expand the typings
Browse files Browse the repository at this point in the history
  • Loading branch information
stacey-gammon committed Jul 11, 2018
1 parent 6ca4c5f commit 7ef218d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/components/flyout/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
declare module '@elastic/eui' {
export const EuiFlyout: React.SFC<any>;
export interface EuiFlyoutProps {
onClose: () => void;
size: 's' | 'm' | 'l';
/**
* Hides the default close button. You must provide another close button somewhere within the flyout.
*/
hideCloseButton: boolean;
/**
* Locks the mouse / keyboard focus to within the flyout
*/
ownFocus: boolean;
}

export const EuiFlyout: React.SFC<
CommonProps &
EuiFlyoutProps
>;

export const EuiFlyoutBody: React.SFC<CommonProps>;

export interface EuiFlyoutHeaderProps {
hasBorder: boolean;
}
export const EuiFlyoutHeader: React.SFC<CommonProps & EuiFlyoutHeaderProps>;

export const EuiFlyoutFooter: React.SFC<CommonProps>;
}

0 comments on commit 7ef218d

Please sign in to comment.