public-demo-shared-types 0.1.46
Install from the command line:
Learn more about npm packages
$ npm install @knapsack-cloud/public-demo-shared-types@0.1.46
Install via package.json:
"@knapsack-cloud/public-demo-shared-types": "0.1.46"
About this version
Note: Temporary workaround until Knapsack is able to write the type definitions to the respective package dist directories
An example implementation below:
import { ButtonProps } from '@knapsack-cloud/workspace-shared-types';
export const Button: React.FC<ButtonProps> = ({
disabled,
size,
style,
children
}) => {
return (
<button disabled={ disabled } className={`ex-button ex-button--size-${size} ex-button--${style}`}>{ children }</button>
);
};