Skip to content

Commit

Permalink
feat(Embed): add iframe shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Fedyashov committed Jul 17, 2017
1 parent b4669f9 commit 97ad8e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export interface HtmlLabelProps {
children?: React.ReactNode;
}

export interface HtmlIframeProps {
[key: string]: any;
src?: string;
}

export interface HtmlImageProps {
[key: string]: any;
src?: string;
Expand Down
4 changes: 2 additions & 2 deletions src/modules/Embed/Embed.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

import { SemanticShorthandItem } from '../..';
import { HtmlIframeProps, SemanticShorthandItem } from '../..';
import { IconProps } from '../../elements/Icon';

export interface EmbedProps {
Expand Down Expand Up @@ -43,7 +43,7 @@ export interface EmbedProps {
id?: string;

/** Shorthand for HTML iframe. */
iframe?: any;
iframe?: SemanticShorthandItem<HtmlIframeProps>;

/**
* Сalled on click.
Expand Down

0 comments on commit 97ad8e1

Please sign in to comment.