diff --git a/packages/web-react/src/components/Drawer/demo/DrawerDefault.tsx b/packages/web-react/src/components/Drawer/demo/DrawerDefault.tsx index 47a18eb595..7ec31495c3 100644 --- a/packages/web-react/src/components/Drawer/demo/DrawerDefault.tsx +++ b/packages/web-react/src/components/Drawer/demo/DrawerDefault.tsx @@ -66,7 +66,6 @@ const DrawerDefault = () => { label="Drawer content" name="content" id="drawer-content" - helperText="Can contain HTML." value={content} onChange={(e) => setContent(e.currentTarget.value)} /> diff --git a/packages/web-react/src/components/Navigation/Navigation.tsx b/packages/web-react/src/components/Navigation/Navigation.tsx index 4ef129f95d..b3de00a4ee 100644 --- a/packages/web-react/src/components/Navigation/Navigation.tsx +++ b/packages/web-react/src/components/Navigation/Navigation.tsx @@ -2,15 +2,21 @@ import classNames from 'classnames'; import React from 'react'; +import { Direction } from '../../constants'; import { useStyleProps } from '../../hooks'; import { SpiritNavigationProps } from '../../types'; import { useNavigationStyleProps } from './useNavigationStyleProps'; +const defaultProps: Partial = { + direction: Direction.HORIZONTAL, +}; + const Navigation = (props: SpiritNavigationProps): JSX.Element => { - const { children, ...restProps } = props; + const propsWithDefaults = { ...defaultProps, ...props }; + const { children, ...restProps } = propsWithDefaults; - const { classProps } = useNavigationStyleProps(); - const { styleProps, props: otherProps } = useStyleProps(restProps); + const { classProps, props: modifiedProps } = useNavigationStyleProps(restProps); + const { styleProps, props: otherProps } = useStyleProps(modifiedProps); return (