Skip to content

Commit

Permalink
feat: add absolute position style to client
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianCraig committed Mar 25, 2020
1 parent f447fc6 commit a184e16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.now
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## React Constraint

React constraint is a package intended for Adding a Constraint based layout on React web apps, it is inspired by [Android Constraint Layout](https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout), it is currently on Pre-alpha state
React constraint is a package intended for Adding a Constraint based layout on React web apps, it is inspired by [Android Constraint Layout](https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout), it is currently on Pre-alpha state.

It is divided in the **Core** package, and the **Playground**, you can run the playground in [https://react-constraint-playground.now.sh](https://react-constraint-playground.now.sh).

### Documentation

Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/generator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const createLayoutComponent = (
width,
height,
top: positions[Side.top],
left: positions[Side.left]
left: positions[Side.left],
position: "absolute"
},
key: name
});
Expand Down

0 comments on commit a184e16

Please sign in to comment.