Replies: 2 comments 12 replies
-
Unfortunately there is not at this time. @Archmonger is going to be working on overhauling the docs in the coming months and we plan on incorporating some examples that demonstrate more realistic use cases.
Is this in reference to exporting components that are nested inside react-bootstrap? If so, #543 is tracking that issue. If that's not what you're referring to, could you provide a bit more detail? I'm not sure I follow.
Constructing components exported from a module works the same as other HTML elements. You can pass a dictionary of props followed by a sequence of children as positional arguments: @idom.component
def navbar():
return NavBar({"bg": "light", "expanded": True}, some_child, another_child) Note that, at the moment, children of exported components like One more thing to keep in mind is that in the future we plan on deprecating |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply…I guess what I’m looking for is with current limitations, best practice for how to leverage the more advanced react-bootstrap components that require the .elements (snippet of how to use navbar with navbar.items for example) and maybe how implanting something like grid would work. With those 2 snippets I think it should be enough for beginner to design the layout of their app and also understand how to import some of the more intricate components |
Beta Was this translation helpful? Give feedback.
-
Hey all,
Brand new to IDOM, went through the documentation and have some training in react so understand the concepts of using components... Am getting a little stuck on importing bootstrap though. Am just trying to make a quick front end for a self hosted docker web app, and was hoping there would be a quick way to get css formatting in, so turned to bootstrap but having some issues getting the components incorporated.
Is there a quick start guide / template for starting up a new app? i.e. cookiecutter that already has a navbar, and sample page with component pre configured?
This is as far as I got and cant seem to find documentation on how to configure these components when they have nested portions, i.e navbar.item, navbar.brand etc..
Saw this, but they didnt show the snippet on how to actually create the component once imported:
#526 (reply in thread)
app.py
navbar.py
Beta Was this translation helpful? Give feedback.
All reactions