-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(preview): add ts type definitions
- Loading branch information
1 parent
c769de8
commit b653c65
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "./preview"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import * as React from "react"; | ||
import { MarginSpacingProps } from "../../utils/helpers/options-helper"; | ||
import { MarginProps } from "styled-system"; | ||
|
||
export interface PreviewProps extends MarginSpacingProps { | ||
children?: React.ReactNode; | ||
export interface PreviewProps extends MarginProps { | ||
/** A custom height to be applied to the component. */ | ||
height?: string; | ||
/** The number of lines to render. */ | ||
lines?: number; | ||
/* Provides more control over when in a loading state. */ | ||
loading?: boolean; | ||
/** A custom width */ | ||
width?: string; | ||
} | ||
|
||
declare const Preview: React.FunctionComponent<PreviewProps>; | ||
declare function Preview(props: React.PropsWithChildren<PreviewProps>): JSX.Element; | ||
|
||
export default Preview; |