mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-18 05:02:24 +08:00
33 lines
780 B
TypeScript
33 lines
780 B
TypeScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
declare const Welcome: {
|
|
({ showApp }: {
|
|
showApp: () => void;
|
|
}): JSX.Element;
|
|
displayName: string;
|
|
propTypes: {
|
|
showApp: PropTypes.Requireable<(...args: any[]) => any>;
|
|
};
|
|
defaultProps: {
|
|
showApp: any;
|
|
};
|
|
};
|
|
|
|
declare const Button: {
|
|
({ children, onClick, }: {
|
|
children: React.ReactNode;
|
|
onClick: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
}): JSX.Element;
|
|
displayName: string;
|
|
propTypes: {
|
|
children: PropTypes.Validator<PropTypes.ReactNodeLike>;
|
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
};
|
|
defaultProps: {
|
|
onClick: () => void;
|
|
};
|
|
};
|
|
|
|
export { Welcome, Button };
|