Skip to content

Conversation

@sazedul-haque
Copy link
Collaborator

No description provided.

Introduces the SvgIcon class, providing a fluent builder for rendering SVG icons with customizable attributes, size, and name. This component loads SVG files from the assets directory and supports additional HTML attributes for flexible usage.
Introduces a new 'color' property and method to SvgIcon, allowing icons to be rendered with different color classes. Updates the render logic to append the color class if specified.
@sazedul-haque sazedul-haque added the 4.0.0 Tutor v4.w0w label Jan 7, 2026
*
* Example usage:
* ```
* SvgIcon::make()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have simple helper, which support all

tutor_utils()->render_svg_icon( Icon::CHECK );

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This additional class will not add value, rather than make increase codebase and inconsistent code use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants