Ok Blazor generally works equivalently to Nimble Blazor, so refer to the Nimble Blazor README.md. Any Ok Blazor-specific differences are listed below.
Any project using OkBlazor components will typically also be using NimbleBlazor components and SprightBlazor components (e.g. NimbleThemeProvider if nothing else). OkBlazor is not a superset of NimbleBlazor or SprightBlazor, but the ok-components bundle is a superset of the spright-components bundle and in-turn the nimble-components bundle. Follow the directions below to avoid issues:
-
Add references to the OkBlazor, SprightBlazor, and NimbleBlazor NuGet packages in your project
-
Include only the Ok all-components bundle in the HTML page (generally
App.razorfor Blazor Web Apps, orwwwroot/index.htmlfor Blazor WebAssembly / Hybrid):<body> ... <!-- Do NOT also include the nimble-components bundle or spright-components bundle! --> <script src="_content/OkBlazor/ok-components/all-components-bundle.min.js"></script> </body>
Follow the instructions in CONTRIBUTING.md to modify this library.