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

✨ Add support for using local SVG assets as block icons (Fixes #265) #277

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

Log1x
Copy link
Owner

@Log1x Log1x commented Aug 12, 2024

This lets you set block icons using local SVG assets by prefixing the icon with asset: and using dot notation to the path such as:

/**
 * The block icon.
 *
 * @var string|array
 */
public $icon = 'asset:images.blocks.example';

would attempt to use resources/images/blocks/example.svg as an icon.

@Log1x Log1x merged commit c9402d4 into master Aug 12, 2024
2 checks passed
@Log1x Log1x deleted the feat/265 branch August 12, 2024 11:43
@Log1x Log1x mentioned this pull request Aug 12, 2024
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

Successfully merging this pull request may close these issues.

1 participant