Skip to content

Commit

Permalink
added: part of readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Pasynok committed Nov 6, 2024
1 parent 31b31de commit b94bdda
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Bring the power of slots to your React components effortlessly.
- [How to Pass Props to Components Inserted into a Slot](#how-to-pass-props-to-components-inserted-into-a-slot)
- [How to Insert Multiple Components into a Slot](#how-to-insert-multiple-components-into-a-slot)
- [How to Manage the Order of Components in a Slot](#how-to-manage-the-order-of-components-in-a-slot)
- [Community](#community)

## Motivation

Expand Down Expand Up @@ -200,3 +201,8 @@ With the order property applied, the rendered output will look like this:
- **Type**: `order` is always a number.
- **Default Behavior**: If `order` is not provided, the components are rendered in the order they are inserted.
- **Custom Order**: Components with a lower `order` value are rendered before those with a higher value. If multiple components have the same `order` value, they maintain the order of insertion.

## Community

- [Discord](https://discord.gg/Q4DFKnxp)
- [Telegram](https://t.me/grlt_hub_app_compose)
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,22 @@
},
"repository": {
"type": "git",
"url": ""
"url": "https://github.com/grlt-hub/react-slots.git"
},
"homepage": "",
"description": "",
"keywords": []
"homepage": "https://github.com/grlt-hub/react-slots",
"description": "Bring the power of slots to your React components effortlessly.",
"keywords": [
"grlt",
"grlt-hub",
"react",
"slots",
"slot-based-architecture",
"dynamic-content",
"component-injection",
"modular-components",
"react-library",
"ui-framework",
"content-management",
"frontend"
]
}

0 comments on commit b94bdda

Please sign in to comment.