[#812,package][xl]: initial versioning of the package
This commit is contained in:
15
packages/components/src/index.tsx
Normal file
15
packages/components/src/index.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React, { FC, HTMLAttributes, ReactChild } from 'react';
|
||||
|
||||
export interface Props extends HTMLAttributes<HTMLDivElement> {
|
||||
/** custom content, defaults to 'the snozzberries taste like snozzberries' */
|
||||
children?: ReactChild;
|
||||
}
|
||||
|
||||
// Please do not use types off of a default export module or else Storybook Docs will suffer.
|
||||
// see: https://github.com/storybookjs/storybook/issues/9556
|
||||
/**
|
||||
* A custom Thing component. Neat!
|
||||
*/
|
||||
export const Thing: FC<Props> = ({ children }) => {
|
||||
return <div>{children || `the snozzberries taste like snozzberries`}</div>;
|
||||
};
|
||||
Reference in New Issue
Block a user