Skip to content

Commit f0dcfd3

Browse files
Extract CSS into its own file, to make it SSR compatible
1 parent f5c6196 commit f0dcfd3

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@quantargo/react-layout",
3-
"version": "2.1.2",
3+
"version": "2.2.0",
44
"description": "Drop-in layout components with zero configuration",
55
"main": "dist/index.js",
66
"scripts": {

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
plugins: [
1717
typescript(),
1818
postcss({
19-
plugins: []
19+
extract: true
2020
})
2121
],
2222
external: ['react', 'react-dom']

src/LayoutAuto.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export type LayoutAutoProps = {
1313

1414
type Ref = HTMLElement
1515

16+
/**
17+
* LayoutAuto is designed to fill the gap for the CSS `gap` property, until it is more widely supported.
18+
*/
1619
export const LayoutAuto = React.forwardRef<Ref, LayoutAutoProps>(function LayoutAuto ({
1720
gap = 1,
1821
children,

0 commit comments

Comments
 (0)