Add JSDoc comments to all ui components

This commit is contained in:
Alex Gleason
2022-04-30 23:39:58 -05:00
parent 999d5bd9f4
commit b7d4411627
26 changed files with 168 additions and 9 deletions

View File

@@ -24,14 +24,21 @@ const spaces = {
};
interface IHStack {
/** Vertical alignment of children. */
alignItems?: 'top' | 'bottom' | 'center' | 'start',
/** Extra class names on the <div> element. */
className?: string,
/** Horizontal alignment of children. */
justifyContent?: 'between' | 'center',
/** Size of the gap between elements. */
space?: 0.5 | 1 | 1.5 | 2 | 3 | 4 | 6,
/** Whether to let the flexbox grow. */
grow?: boolean,
/** Extra CSS styles for the <div> */
style?: React.CSSProperties
}
/** Horizontal row of child elements. */
const HStack: React.FC<IHStack> = (props) => {
const { space, alignItems, grow, justifyContent, className, ...filteredProps } = props;