{"id":19869792,"url":"https://github.com/aeagle/blazor-book","last_synced_at":"2025-05-02T08:31:08.212Z","repository":{"id":43469799,"uuid":"460639901","full_name":"aeagle/blazor-book","owner":"aeagle","description":"A Storybook like UI for Blazor components","archived":false,"fork":false,"pushed_at":"2024-09-25T09:02:00.000Z","size":232,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T00:12:19.484Z","etag":null,"topics":["blazor","components","layout","net","storybook","ui","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aeagle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-02-17T23:17:47.000Z","updated_at":"2024-09-25T09:02:04.000Z","dependencies_parsed_at":"2024-04-23T19:54:26.737Z","dependency_job_id":"f29b6e9c-7b49-466e-b66d-fc098af0f0f4","html_url":"https://github.com/aeagle/blazor-book","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeagle%2Fblazor-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeagle%2Fblazor-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeagle%2Fblazor-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeagle%2Fblazor-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aeagle","download_url":"https://codeload.github.com/aeagle/blazor-book/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252008772,"owners_count":21679641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","components","layout","net","storybook","ui","wasm","webassembly"],"created_at":"2024-11-12T16:06:56.108Z","updated_at":"2025-05-02T08:31:07.838Z","avatar_url":"https://github.com/aeagle.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blazor-book\n\nA Storybook like UI for hosting Blazor components\n\n\u003cimg src=\"https://www.allaneagle.com/blazorbook.gif?v=1\" width=\"100%\" /\u003e\n\n## Installation\n\nThe `BlazorBook` nuget package needs to be added to your Blazor WASM/Server app and your Razor Class library project containing your individual stories.\n\n`Install-Package BlazorBook -ProjectName MyProject`\n\n## Setup\n\nIn the startup of your Blazor WASM/Server app:\n\n`app.RegisterAllStories(Assembly.Load(\"\u003c\u003cAssembly name containing stories\u003e\u003e\"));`\n\n- In `_Imports.razor`\n\nAdd `@using BlazorBook.Components`\n\n- In `App.razor`\n\n  1. Add \u003cBlazorBook.Resources /\u003e to the top\n  2. Add an AdditionalAssemblies prop on the \u003cRouter /\u003e component as follows:\n\n```html\n\u003cRouter\n  AppAssembly=\"@typeof(App).Assembly\"\n  AdditionalAssemblies=\"new[] { typeof(BlazorBook.UI).Assembly }\"\n\u003e\n  ...\n\u003c/Router\u003e\n```\n\nThe stories will be registered and the UI available on the path `/blazorbook`\n\n## Stories\n\nCreate a Razor Class Library to contain your stories. This should also have the `BlazorBook` nuget package as a dependency.\n\nFor example a story can be as follows:\n\n### HelloWorld.razor\n\n```\n@inherits BlazorBook.StoryComponent\n@attribute [DisplayName(\"Story name\")]\n\n\u003cdiv\u003eHello @(world)!\u003c/div\u003e\n\n@code {\n    string world = \"World!\";\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeagle%2Fblazor-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faeagle%2Fblazor-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeagle%2Fblazor-book/lists"}