Skip to content

Commit 00a8e89

Browse files
committed
fix(types): fix types for props in icon and layout
1 parent eac64d8 commit 00a8e89

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/components/icon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export {Icon};
1313
* @typedef {import('../types.js').Styles} Styles
1414
*
1515
* @typedef IconProps
16-
* @property {string} [color='currentColor']
16+
* @property {ResponsiveStyleValue} [color='currentColor']
1717
* Sets the icon SVG container's `color`. You can use a theme-based value.
1818
* If an icon SVG is using `'currentColor'` for appropriate color attributes
1919
* (e.g. `stroke`, `fill`), the `Icon will apply the specified color to the

lib/components/layout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ export {Layout};
1616
* @property {string|CustomElement} [as="div"]
1717
* Renders `Layout` as the specified HTML element or `CustomElement`.
1818
* Renders as a `HTMLDivElement` by default.
19-
* @property {string} [direction]
19+
* @property {ResponsiveStyleValue} [direction]
2020
* Sets the `flexDirection` CSS property.
2121
* @property {boolean} [inline]
2222
* If `true`, sets the `display` CSS property to `'inline-flex'`, otherwise
2323
* sets to `'flex'` by default.
24-
* @property {string} [spacing]
24+
* @property {ResponsiveStyleValue} [spacing]
2525
* Spaces all children (except the last child) evenly by the specified
2626
* margin value. You can use a theme-based value.
2727
* @property {boolean} [wrap]
2828
* If `true`, sets the `flexWrap` CSS property to `'wrap'`, otherwise it is
2929
* set to `undefined` by default.
30-
* @property {string} [wrapSpacing]
30+
* @property {ResponsiveStyleValue} [wrapSpacing]
3131
* If `props.wrap` is set to `true`, you may space all wrapped children with
3232
* the specified vertical margin value. A negative margin is applied on the
3333
* `Layout` element. You can use a theme-based value.

0 commit comments

Comments
 (0)