Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation around icons #5

Open
dannyBies opened this issue Apr 6, 2020 · 7 comments
Open

Documentation around icons #5

dannyBies opened this issue Apr 6, 2020 · 7 comments

Comments

@dannyBies
Copy link

Hi,

Awesome library! I've been playing around with it and it looks quite promising. One thing I noticed is that I'm missing documentation around icons; which ones are available and how can you create custom icons.
I can figure this out by looking at the source-code but some examples in the documentation would be very helpful.

@skclusive
Copy link
Owner

thanks for reporting. thats a great catch. i wanted to have a page for icons and missed it. will do add it.

And i have not added all icons from material-ui-icons, only icons required during Docs apps and Samples projects. Adding all will make Skclusive-UI heavy.

do you think, we can move the Icons as separate project (similar to Skclusive-Layout)?

@dannyBies
Copy link
Author

If there will be many icons provided I think it makes sense to add them to a separate project. The other option is to leave it up to the user to add icons and only document how to do this.

@skclusive
Copy link
Owner

skclusive commented Apr 7, 2020

thats a great suggestion. for now will keep the current icons.

so the tasks are to create demos for existing icons and documenting how to create custom icons easily.

if you are interested to contribute, feel free to do so.

@dannyBies
Copy link
Author

Unfortunately I don't have the time to do this right now. I might have some time in a few weeks but probably not before then.

@skclusive
Copy link
Owner

no issues. will take care. please continue reporting issues found.

@esso23
Copy link

esso23 commented Apr 17, 2020

Correct me if I'm wrong, but the library size is only a concern when using client-side Blazor App (WebAssembly) - with server-side Blazor you don't really care. It's like 100 extra kB - in my opinion most people won't care about that, but it would be nice to have an option to somehow include icons that you need and exclude others. As far as I know that's not possible in .NET (without creating separate project for each icon) so it would have to be done in JS.
Anyway, I think the icons should definitely be included in the library. Having a separate project is probably the easiest solution.

@skclusive
Copy link
Owner

what you say is correct. library size or number of libraries does not matter in server side blazor. yes. i am not sure tree shaking like functionality is there in blazor. Icons are already is separate sub project. but by default included in the main Skclusive.Material.Component.

may be we can remove it from Skclusive.Material.Component and document how to include the Skclusive.Material.Icon. that would be breaking change though. Also need to document how to add custom icons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants