diff --git a/package.json b/package.json index 4c17350..0928f2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@quantargo/react-layout", - "version": "2.1.2", + "version": "2.2.0", "description": "Drop-in layout components with zero configuration", "main": "dist/index.js", "scripts": { diff --git a/rollup.config.js b/rollup.config.js index f38f151..31f1db6 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -16,7 +16,7 @@ export default { plugins: [ typescript(), postcss({ - plugins: [] + extract: true }) ], external: ['react', 'react-dom'] diff --git a/src/LayoutAuto.tsx b/src/LayoutAuto.tsx index 3f01617..2d6bc14 100644 --- a/src/LayoutAuto.tsx +++ b/src/LayoutAuto.tsx @@ -13,6 +13,9 @@ export type LayoutAutoProps = { type Ref = HTMLElement +/** + * LayoutAuto is designed to fill the gap for the CSS `gap` property, until it is more widely supported. + */ export const LayoutAuto = React.forwardRef(function LayoutAuto ({ gap = 1, children,