Skip to content

Commit

Permalink
add type defenitions
Browse files Browse the repository at this point in the history
  • Loading branch information
illiteratewriter authored and phwebi committed Oct 27, 2021
1 parent aa29b39 commit c77ac36
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions types/lib/Placeholder.d.ts
@@ -0,0 +1,17 @@
import * as React from 'react';
import { CSSModule } from './index';

export interface PlaceholderProps extends React.HTMLAttributes<HTMLElement> {
[key: string]: any;
color?: string;
tag?: React.ElementType;
animation?: string;
className?: string;
cssModule?: CSSModule;
size?: string;
widths?: string[];
innerRef?: React.Ref<HTMLElement>;
}

declare class Placeholder extends React.Component<PlaceholderProps> {}
export default Placeholder;
14 changes: 14 additions & 0 deletions types/lib/PlaceholderButton.d.ts
@@ -0,0 +1,14 @@
import * as React from 'react';
import { CSSModule } from './index';

export interface PlaceholderButtonProps extends React.HTMLAttributes<HTMLElement> {
[key: string]: any;
size?: string;
color?: string;
outline?: boolean;
cssModule?: CSSModule;
tag?: React.ElementType;
}

declare class PlaceholderButton extends React.Component<PlaceholderButtonProps> {}
export default PlaceholderButton;

0 comments on commit c77ac36

Please sign in to comment.