Skip to content

Commit

Permalink
feat(core-react): add types for image (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgbenito7 authored and seimithwework committed Sep 9, 2019
1 parent 92da9ae commit b345596
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions packages/core-react/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,24 @@ export type SelectProps = {

declare const Select: React.FC<SelectProps>;

export {
Button,
export type ImageProps = {
className?: string;
src: string;
aspect: '16by9' | '1by1' | '3by4' | '4by3' | 'cinema';
bg?: boolean;
} & React.HTMLProps<HTMLImageElement>;

declare const Image: React.FC<ImageProps>;

export {
Button,
Card,
Checkbox,
Container,
Grid,
Container,
Grid,
Image,
Radio,
Select,
TextArea,
TextField,
TextField
};

0 comments on commit b345596

Please sign in to comment.