Skip to content

Commit

Permalink
Extract CSS into its own file, to make it SSR compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
christiankaindl committed Mar 8, 2021
1 parent f5c6196 commit f0dcfd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
plugins: [
typescript(),
postcss({
plugins: []
extract: true
})
],
external: ['react', 'react-dom']
Expand Down
3 changes: 3 additions & 0 deletions src/LayoutAuto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Ref, LayoutAutoProps>(function LayoutAuto ({
gap = 1,
children,
Expand Down

0 comments on commit f0dcfd3

Please sign in to comment.