JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3327
  • Score
    100M100P100Q123879F
  • License MIT

A standalone SVG icon library for StrataKit

Package Exports

  • @stratakit/icons/2d.svg
  • @stratakit/icons/3d-object.svg
  • @stratakit/icons/3d.svg
  • @stratakit/icons/4d.svg
  • @stratakit/icons/activity.svg
  • @stratakit/icons/add-circle.svg
  • @stratakit/icons/add-square.svg
  • @stratakit/icons/add.svg
  • @stratakit/icons/ai-chat-add.svg
  • @stratakit/icons/ai-chat.svg
  • @stratakit/icons/ai-sparkle.svg
  • @stratakit/icons/airplane.svg
  • @stratakit/icons/align-bottom.svg
  • @stratakit/icons/align-center-horizontal.svg
  • @stratakit/icons/align-center-vertical.svg
  • @stratakit/icons/align-left.svg
  • @stratakit/icons/align-right.svg
  • @stratakit/icons/align-top.svg
  • @stratakit/icons/android-logo.svg
  • @stratakit/icons/annotation.svg
  • @stratakit/icons/apple.svg
  • @stratakit/icons/arc.svg
  • @stratakit/icons/archive.svg
  • @stratakit/icons/area-building.svg
  • @stratakit/icons/area-island-traffic.svg
  • @stratakit/icons/area-pad.svg
  • @stratakit/icons/area-parking.svg
  • @stratakit/icons/area-pond.svg
  • @stratakit/icons/arrow-down.svg
  • @stratakit/icons/arrow-left.svg
  • @stratakit/icons/arrow-right.svg
  • @stratakit/icons/arrow-up.svg
  • @stratakit/icons/assemble.svg
  • @stratakit/icons/attach.svg
  • @stratakit/icons/automagic.svg
  • @stratakit/icons/bag.svg
  • @stratakit/icons/basket.svg
  • @stratakit/icons/bentley-systems.svg
  • @stratakit/icons/bis-category-3d.svg
  • @stratakit/icons/bis-category-subcategory.svg
  • @stratakit/icons/bis-class.svg
  • @stratakit/icons/bis-definitions-container.svg
  • @stratakit/icons/bis-element.svg
  • @stratakit/icons/bis-item-generic.svg
  • @stratakit/icons/bis-subject.svg
  • @stratakit/icons/bolt.svg
  • @stratakit/icons/bookmark.svg
  • @stratakit/icons/boolean.svg
  • @stratakit/icons/boundary-property.svg
  • @stratakit/icons/brain.svg
  • @stratakit/icons/building.svg
  • @stratakit/icons/bulldozer.svg
  • @stratakit/icons/calendar.svg
  • @stratakit/icons/camera-retake.svg
  • @stratakit/icons/camera-video-disabled.svg
  • @stratakit/icons/camera-video.svg
  • @stratakit/icons/camera.svg
  • @stratakit/icons/caret-down.svg
  • @stratakit/icons/caret-left.svg
  • @stratakit/icons/caret-right.svg
  • @stratakit/icons/caret-up.svg
  • @stratakit/icons/carets-up-down.svg
  • @stratakit/icons/cart.svg
  • @stratakit/icons/catchment.svg
  • @stratakit/icons/category.svg
  • @stratakit/icons/cesium.svg
  • @stratakit/icons/chart-bar.svg
  • @stratakit/icons/chart-line.svg
  • @stratakit/icons/chart-pie.svg
  • @stratakit/icons/chart.svg
  • @stratakit/icons/chat.svg
  • @stratakit/icons/checkmark.svg
  • @stratakit/icons/chevron-down.svg
  • @stratakit/icons/chevron-left-double.svg
  • @stratakit/icons/chevron-left.svg
  • @stratakit/icons/chevron-right-double.svg
  • @stratakit/icons/chevron-right.svg
  • @stratakit/icons/chevron-up.svg
  • @stratakit/icons/circle.svg
  • @stratakit/icons/clash.svg
  • @stratakit/icons/clipboard.svg
  • @stratakit/icons/clock.svg
  • @stratakit/icons/cloud-download.svg
  • @stratakit/icons/cloud-lightning.svg
  • @stratakit/icons/cloud-offline.svg
  • @stratakit/icons/cloud-sync-disabled.svg
  • @stratakit/icons/cloud-sync.svg
  • @stratakit/icons/cloud-upload.svg
  • @stratakit/icons/cloud.svg
  • @stratakit/icons/collapse-rows-all.svg
  • @stratakit/icons/collapse-rows.svg
  • @stratakit/icons/column-manage.svg
  • @stratakit/icons/compare.svg
  • @stratakit/icons/compass.svg
  • @stratakit/icons/computer.svg
  • @stratakit/icons/configuration.svg
  • @stratakit/icons/controller.svg
  • @stratakit/icons/copy.svg
  • @stratakit/icons/cost-configuration.svg
  • @stratakit/icons/crop.svg
  • @stratakit/icons/cross-section-perpendicular.svg
  • @stratakit/icons/cross-section-profile.svg
  • @stratakit/icons/cross-section-three-point.svg
  • @stratakit/icons/cross-section-two-point.svg
  • @stratakit/icons/cross-section.svg
  • @stratakit/icons/crown.svg
  • @stratakit/icons/cursor-box.svg
  • @stratakit/icons/cursor-click.svg
  • @stratakit/icons/cursor-select.svg
  • @stratakit/icons/cursor.svg
  • @stratakit/icons/curve.svg
  • @stratakit/icons/cut.svg
  • @stratakit/icons/dashboard.svg
  • @stratakit/icons/database.svg
  • @stratakit/icons/delete.svg
  • @stratakit/icons/deliverables.svg
  • @stratakit/icons/details.svg
  • @stratakit/icons/developer.svg
  • @stratakit/icons/dimension-angle.svg
  • @stratakit/icons/dimension-linear.svg
  • @stratakit/icons/dimension-ordinate.svg
  • @stratakit/icons/dimension-radial.svg
  • @stratakit/icons/disconnect.svg
  • @stratakit/icons/dismiss-circle.svg
  • @stratakit/icons/dismiss-square.svg
  • @stratakit/icons/dismiss.svg
  • @stratakit/icons/distribute-center-horizontal.svg
  • @stratakit/icons/distribute-center-vertical.svg
  • @stratakit/icons/dock-bottom.svg
  • @stratakit/icons/dock-left.svg
  • @stratakit/icons/dock-right.svg
  • @stratakit/icons/dock-top.svg
  • @stratakit/icons/document-blank.svg
  • @stratakit/icons/document-locked.svg
  • @stratakit/icons/document-migration.svg
  • @stratakit/icons/document-pdf.svg
  • @stratakit/icons/document-reference.svg
  • @stratakit/icons/document.svg
  • @stratakit/icons/documentation.svg
  • @stratakit/icons/download.svg
  • @stratakit/icons/downloads-view.svg
  • @stratakit/icons/drag-handle-horizontal.svg
  • @stratakit/icons/drag-handle-vertical.svg
  • @stratakit/icons/drainage.svg
  • @stratakit/icons/draw.svg
  • @stratakit/icons/drawing-view-create.svg
  • @stratakit/icons/drone.svg
  • @stratakit/icons/drop.svg
  • @stratakit/icons/duplicate.svg
  • @stratakit/icons/edit-all.svg
  • @stratakit/icons/edit.svg
  • @stratakit/icons/ellipse.svg
  • @stratakit/icons/email-at.svg
  • @stratakit/icons/email.svg
  • @stratakit/icons/environment.svg
  • @stratakit/icons/equals.svg
  • @stratakit/icons/eraser.svg
  • @stratakit/icons/error.svg
  • @stratakit/icons/exit.svg
  • @stratakit/icons/expand-rows-all.svg
  • @stratakit/icons/expand-rows.svg
  • @stratakit/icons/explode.svg
  • @stratakit/icons/export.svg
  • @stratakit/icons/eyedropper-drop.svg
  • @stratakit/icons/eyedropper-filled.svg
  • @stratakit/icons/eyedropper.svg
  • @stratakit/icons/fast-backward.svg
  • @stratakit/icons/fast-forward.svg
  • @stratakit/icons/feedback.svg
  • @stratakit/icons/filter.svg
  • @stratakit/icons/find.svg
  • @stratakit/icons/fire-extinguisher.svg
  • @stratakit/icons/fire.svg
  • @stratakit/icons/fit-to-view.svg
  • @stratakit/icons/flag.svg
  • @stratakit/icons/folder-add.svg
  • @stratakit/icons/folder-browse.svg
  • @stratakit/icons/folder-chevron-down.svg
  • @stratakit/icons/folder-chevron-up.svg
  • @stratakit/icons/folder-export.svg
  • @stratakit/icons/folder-import.svg
  • @stratakit/icons/folder-lock.svg
  • @stratakit/icons/folder-open.svg
  • @stratakit/icons/folder-shortcut.svg
  • @stratakit/icons/folder.svg
  • @stratakit/icons/font-bold.svg
  • @stratakit/icons/font-color.svg
  • @stratakit/icons/font-italic.svg
  • @stratakit/icons/font-size.svg
  • @stratakit/icons/font-strikethrough.svg
  • @stratakit/icons/font-underline.svg
  • @stratakit/icons/form.svg
  • @stratakit/icons/frame-backward.svg
  • @stratakit/icons/frame-forward.svg
  • @stratakit/icons/function.svg
  • @stratakit/icons/geolocate.svg
  • @stratakit/icons/gesture-one-finger-double-tap.svg
  • @stratakit/icons/gesture-one-finger-drag.svg
  • @stratakit/icons/gesture-one-finger-tap.svg
  • @stratakit/icons/gesture-pinch.svg
  • @stratakit/icons/gesture-touch.svg
  • @stratakit/icons/gesture-two-finger-drag.svg
  • @stratakit/icons/gesture-two-finger-tap.svg
  • @stratakit/icons/gesture-two-finger.svg
  • @stratakit/icons/globe.svg
  • @stratakit/icons/go-to-end.svg
  • @stratakit/icons/go-to-start.svg
  • @stratakit/icons/grading-area.svg
  • @stratakit/icons/grading-constraints.svg
  • @stratakit/icons/grading-direction.svg
  • @stratakit/icons/grading-limit.svg
  • @stratakit/icons/grid.svg
  • @stratakit/icons/group.svg
  • @stratakit/icons/hand.svg
  • @stratakit/icons/heart.svg
  • @stratakit/icons/help.svg
  • @stratakit/icons/hierarchy-tree.svg
  • @stratakit/icons/history.svg
  • @stratakit/icons/home.svg
  • @stratakit/icons/hourglass.svg
  • @stratakit/icons/i-beam.svg
  • @stratakit/icons/icons-list.json
  • @stratakit/icons/image.svg
  • @stratakit/icons/imodel.svg
  • @stratakit/icons/import.svg
  • @stratakit/icons/important-very.svg
  • @stratakit/icons/important.svg
  • @stratakit/icons/inbox.svg
  • @stratakit/icons/info.svg
  • @stratakit/icons/inlet.svg
  • @stratakit/icons/inspection.svg
  • @stratakit/icons/install.svg
  • @stratakit/icons/isolate.svg
  • @stratakit/icons/issue-report.svg
  • @stratakit/icons/issue.svg
  • @stratakit/icons/itwin.svg
  • @stratakit/icons/key.svg
  • @stratakit/icons/keyboard.svg
  • @stratakit/icons/label.svg
  • @stratakit/icons/layers.svg
  • @stratakit/icons/layout-parking.svg
  • @stratakit/icons/layout-pond.svg
  • @stratakit/icons/layout.svg
  • @stratakit/icons/library.svg
  • @stratakit/icons/license-add.svg
  • @stratakit/icons/license-check-in.svg
  • @stratakit/icons/license-check-out.svg
  • @stratakit/icons/license-download.svg
  • @stratakit/icons/license-remove.svg
  • @stratakit/icons/lightbulb.svg
  • @stratakit/icons/line.svg
  • @stratakit/icons/link.svg
  • @stratakit/icons/list.svg
  • @stratakit/icons/location.svg
  • @stratakit/icons/lock-unlocked.svg
  • @stratakit/icons/lock.svg
  • @stratakit/icons/loop.svg
  • @stratakit/icons/magnet.svg
  • @stratakit/icons/maintenance.svg
  • @stratakit/icons/manager.svg
  • @stratakit/icons/manhole-sewer.svg
  • @stratakit/icons/map-google.svg
  • @stratakit/icons/map-info.svg
  • @stratakit/icons/map.svg
  • @stratakit/icons/measure-angle.svg
  • @stratakit/icons/measure-area.svg
  • @stratakit/icons/measure-distance.svg
  • @stratakit/icons/measure-location.svg
  • @stratakit/icons/measure-perpendicular-distance.svg
  • @stratakit/icons/measure-radius.svg
  • @stratakit/icons/measure.svg
  • @stratakit/icons/measurements.svg
  • @stratakit/icons/menu.svg
  • @stratakit/icons/merge.svg
  • @stratakit/icons/mesh-surface.svg
  • @stratakit/icons/mesh.svg
  • @stratakit/icons/minimize.svg
  • @stratakit/icons/minus-circle.svg
  • @stratakit/icons/minus-square.svg
  • @stratakit/icons/minus.svg
  • @stratakit/icons/model-cube.svg
  • @stratakit/icons/model-sphere.svg
  • @stratakit/icons/moon.svg
  • @stratakit/icons/more-horizontal-circle.svg
  • @stratakit/icons/more-horizontal.svg
  • @stratakit/icons/more-vertical-circle.svg
  • @stratakit/icons/more-vertical.svg
  • @stratakit/icons/mouse-click-left.svg
  • @stratakit/icons/mouse-click-middle.svg
  • @stratakit/icons/mouse-click-right.svg
  • @stratakit/icons/mouse-click.svg
  • @stratakit/icons/move.svg
  • @stratakit/icons/network.svg
  • @stratakit/icons/new.svg
  • @stratakit/icons/news.svg
  • @stratakit/icons/notifications-settings.svg
  • @stratakit/icons/notifications.svg
  • @stratakit/icons/object-array.svg
  • @stratakit/icons/object-copy.svg
  • @stratakit/icons/object-edit.svg
  • @stratakit/icons/object-mirror.svg
  • @stratakit/icons/object-move.svg
  • @stratakit/icons/object-offset.svg
  • @stratakit/icons/object-rotate.svg
  • @stratakit/icons/object-scale.svg
  • @stratakit/icons/object-transform.svg
  • @stratakit/icons/object-zoom.svg
  • @stratakit/icons/outfall.svg
  • @stratakit/icons/outlet-pond.svg
  • @stratakit/icons/paint-brush.svg
  • @stratakit/icons/palette.svg
  • @stratakit/icons/panel-collapse-left.svg
  • @stratakit/icons/panel-collapse-right.svg
  • @stratakit/icons/panel-expand-left.svg
  • @stratakit/icons/panel-expand-right.svg
  • @stratakit/icons/panorama-model.svg
  • @stratakit/icons/panorama.svg
  • @stratakit/icons/parking-row.svg
  • @stratakit/icons/parking.svg
  • @stratakit/icons/password-reset.svg
  • @stratakit/icons/path-break.svg
  • @stratakit/icons/path-driveway.svg
  • @stratakit/icons/path-extend.svg
  • @stratakit/icons/path-fillet.svg
  • @stratakit/icons/path-sidewalk.svg
  • @stratakit/icons/path-trim.svg
  • @stratakit/icons/pause-circle.svg
  • @stratakit/icons/pause.svg
  • @stratakit/icons/perspective.svg
  • @stratakit/icons/pin-unpin.svg
  • @stratakit/icons/pin.svg
  • @stratakit/icons/pipe-sewer.svg
  • @stratakit/icons/pipe-water.svg
  • @stratakit/icons/placeholder.svg
  • @stratakit/icons/play-circle.svg
  • @stratakit/icons/play.svg
  • @stratakit/icons/plugins.svg
  • @stratakit/icons/point-parking-aisle.svg
  • @stratakit/icons/point-parking-bay.svg
  • @stratakit/icons/point-parking-direction.svg
  • @stratakit/icons/point-parking-island.svg
  • @stratakit/icons/point-parking-space.svg
  • @stratakit/icons/polygon.svg
  • @stratakit/icons/portal-connect.svg
  • @stratakit/icons/power-bi.svg
  • @stratakit/icons/print-preview.svg
  • @stratakit/icons/print-settings.svg
  • @stratakit/icons/print.svg
  • @stratakit/icons/process.svg
  • @stratakit/icons/production-drawing.svg
  • @stratakit/icons/products.svg
  • @stratakit/icons/profile.svg
  • @stratakit/icons/project.svg
  • @stratakit/icons/properties.svg
  • @stratakit/icons/puzzle.svg
  • @stratakit/icons/re-center.svg
  • @stratakit/icons/read-only.svg
  • @stratakit/icons/reality-mesh.svg
  • @stratakit/icons/record.svg
  • @stratakit/icons/recording.svg
  • @stratakit/icons/records.svg
  • @stratakit/icons/rectangle.svg
  • @stratakit/icons/redo.svg
  • @stratakit/icons/refresh.svg
  • @stratakit/icons/regenerate.svg
  • @stratakit/icons/rename.svg
  • @stratakit/icons/reorder.svg
  • @stratakit/icons/replace.svg
  • @stratakit/icons/report.svg
  • @stratakit/icons/reschedule.svg
  • @stratakit/icons/retry.svg
  • @stratakit/icons/road.svg
  • @stratakit/icons/rotate-left.svg
  • @stratakit/icons/rotate-right.svg
  • @stratakit/icons/rule-delta-create.svg
  • @stratakit/icons/rule-slope-create.svg
  • @stratakit/icons/save-as.svg
  • @stratakit/icons/save-settings.svg
  • @stratakit/icons/save.svg
  • @stratakit/icons/saved-views.svg
  • @stratakit/icons/screenshare-stop.svg
  • @stratakit/icons/screenshare.svg
  • @stratakit/icons/script-run.svg
  • @stratakit/icons/script-status.svg
  • @stratakit/icons/script.svg
  • @stratakit/icons/search.svg
  • @stratakit/icons/selection-all.svg
  • @stratakit/icons/selection-children.svg
  • @stratakit/icons/selection.svg
  • @stratakit/icons/send.svg
  • @stratakit/icons/settings.svg
  • @stratakit/icons/setup.svg
  • @stratakit/icons/share.svg
  • @stratakit/icons/sheet.svg
  • @stratakit/icons/shield.svg
  • @stratakit/icons/smartphone.svg
  • @stratakit/icons/smiley-happy.svg
  • @stratakit/icons/smiley-neutral.svg
  • @stratakit/icons/smiley-sad.svg
  • @stratakit/icons/smiley-very-happy.svg
  • @stratakit/icons/smiley-very-sad.svg
  • @stratakit/icons/snap-bisector.svg
  • @stratakit/icons/snap-center.svg
  • @stratakit/icons/snap-endpoint.svg
  • @stratakit/icons/snap-extension.svg
  • @stratakit/icons/snap-intersection.svg
  • @stratakit/icons/snap-keypoint.svg
  • @stratakit/icons/snap-midpoint.svg
  • @stratakit/icons/snap-nearest.svg
  • @stratakit/icons/snap-origin.svg
  • @stratakit/icons/snap-parallel.svg
  • @stratakit/icons/snap-perpendicular.svg
  • @stratakit/icons/snap-quadrant.svg
  • @stratakit/icons/snap-tangent.svg
  • @stratakit/icons/sort-ascending.svg
  • @stratakit/icons/sort-descending.svg
  • @stratakit/icons/sorting.svg
  • @stratakit/icons/sound-loud.svg
  • @stratakit/icons/sound-mute.svg
  • @stratakit/icons/sound-quiet.svg
  • @stratakit/icons/spin.svg
  • @stratakit/icons/star.svg
  • @stratakit/icons/state-inherited-dot.svg
  • @stratakit/icons/status-draft.svg
  • @stratakit/icons/status-error.svg
  • @stratakit/icons/status-pending.svg
  • @stratakit/icons/status-rejected.svg
  • @stratakit/icons/status-running.svg
  • @stratakit/icons/status-stop.svg
  • @stratakit/icons/status-success.svg
  • @stratakit/icons/status-update.svg
  • @stratakit/icons/status-warning.svg
  • @stratakit/icons/stop-circle.svg
  • @stratakit/icons/stop.svg
  • @stratakit/icons/stopwatch.svg
  • @stratakit/icons/subscriptions.svg
  • @stratakit/icons/sun.svg
  • @stratakit/icons/support.svg
  • @stratakit/icons/suppress.svg
  • @stratakit/icons/swap.svg
  • @stratakit/icons/swatch.svg
  • @stratakit/icons/table-column-insert-right.svg
  • @stratakit/icons/table-of-contents.svg
  • @stratakit/icons/table-row-insert-below.svg
  • @stratakit/icons/table-rows-comfortable.svg
  • @stratakit/icons/table-rows-compact.svg
  • @stratakit/icons/table.svg
  • @stratakit/icons/tag.svg
  • @stratakit/icons/technical-preview-badge.svg
  • @stratakit/icons/technical-preview.svg
  • @stratakit/icons/text-align-center.svg
  • @stratakit/icons/text-align-justify.svg
  • @stratakit/icons/text-align-left.svg
  • @stratakit/icons/text-align-right.svg
  • @stratakit/icons/text.svg
  • @stratakit/icons/timeline.svg
  • @stratakit/icons/timer.svg
  • @stratakit/icons/toilet.svg
  • @stratakit/icons/transparency.svg
  • @stratakit/icons/tree-item-locked.svg
  • @stratakit/icons/tree-item-unlocked.svg
  • @stratakit/icons/underground-storage.svg
  • @stratakit/icons/undo.svg
  • @stratakit/icons/unlink.svg
  • @stratakit/icons/update.svg
  • @stratakit/icons/upload.svg
  • @stratakit/icons/user-active.svg
  • @stratakit/icons/user-add.svg
  • @stratakit/icons/user-away.svg
  • @stratakit/icons/user-edit.svg
  • @stratakit/icons/user-restricted.svg
  • @stratakit/icons/user-settings.svg
  • @stratakit/icons/user.svg
  • @stratakit/icons/users.svg
  • @stratakit/icons/validate.svg
  • @stratakit/icons/vertex-add.svg
  • @stratakit/icons/vertex-control-direction.svg
  • @stratakit/icons/vertex-control-slope.svg
  • @stratakit/icons/vertex-edit.svg
  • @stratakit/icons/vertex-mesh-add.svg
  • @stratakit/icons/vertex-mesh-control.svg
  • @stratakit/icons/vertex-remove.svg
  • @stratakit/icons/visibility-disabled.svg
  • @stratakit/icons/visibility-emphasis.svg
  • @stratakit/icons/visibility-hide.svg
  • @stratakit/icons/visibility-invert.svg
  • @stratakit/icons/visibility-partial.svg
  • @stratakit/icons/visibility-show.svg
  • @stratakit/icons/walk.svg
  • @stratakit/icons/warning.svg
  • @stratakit/icons/wifi-disabled.svg
  • @stratakit/icons/wifi.svg
  • @stratakit/icons/window-add.svg
  • @stratakit/icons/window-area.svg
  • @stratakit/icons/window-back.svg
  • @stratakit/icons/window-collapse.svg
  • @stratakit/icons/window-expand.svg
  • @stratakit/icons/window-forward.svg
  • @stratakit/icons/window-maximize.svg
  • @stratakit/icons/window-minimize.svg
  • @stratakit/icons/window-popout.svg
  • @stratakit/icons/window-settings.svg
  • @stratakit/icons/window-split-horizontal.svg
  • @stratakit/icons/window-split-vertical.svg
  • @stratakit/icons/window-zoom-in.svg
  • @stratakit/icons/window-zoom-out.svg
  • @stratakit/icons/window.svg
  • @stratakit/icons/windows-logo.svg
  • @stratakit/icons/zoom-in-circle.svg
  • @stratakit/icons/zoom-in-magnifier.svg
  • @stratakit/icons/zoom-out-circle.svg
  • @stratakit/icons/zoom-out-magnifier.svg

Readme

@stratakit/icons

Standalone .svg icons for StrataKit.

Each icon is available as an SVG containing multiple resolutions of the same icon using <symbol> elements. This allows the icon to be used at different sizes with increasing detail and quality.

Currently supported symbols as identified by their id attribute values are:

  • icon
  • icon-large

These symbols can be accessed by appending a hash (e.g. #icon, #icon-large) to the .svg URL.

Installation

Using your package manager of choice, install the latest version of @stratakit/icons.

npm add @stratakit/icons

[!NOTE]

As @stratakit/icons requires bundler configuration, consider making it a peer dependency if you're building a package that uses @stratakit/icons.

Usage

Preferred usage is with the Icon component from @stratakit/foundations:

  1. Import the icon you want to use.

    Using the import.meta feature to get the URL of the icon (does not work with SSR):

    const placeholderIcon = new URL("@stratakit/icons/placeholder.svg", import.meta.url).href;

    Or a static import:

    import placeholderIcon from "@stratakit/icons/placeholder.svg";
  2. Render the Icon component from @stratakit/foundations.

    import { Icon } from "@stratakit/foundations";
    
    <Icon href={placeholderIcon} />;

    An optional hash can be specified to select a specific symbol from the .svg:

    <Icon href={`${placeholderIcon}#icon`} />
    <Icon href={`${placeholderIcon}#icon-large`} size="large" />

    Alternatively, you can <use> the SVG sprite directly (without Icon):

    <svg>
         <use href={`${placeholderIcon}#icon`} />
    </svg>
    
    <svg>
         <use href={`${placeholderIcon}#icon-large`} />
    </svg>

[!IMPORTANT] Icons of @stratakit/icons should always be used as external HTTP resources, because of SVG <use> element restrictions. Do not inline the SVG content directly in your React components. Data URIs and non-HTTP protocols are supported on a best effort basis using client-side JavaScript.

Bundler configuration

Vite

Within your Vite configuration, you will need to configure build.assetsInlineLimit to ensure .svg files are not inlined:

export default defineConfig({
    // …
    build: {
        assetsInlineLimit: (filePath) => {
            if (filePath.endsWith(".svg")) return false;
            return undefined;
        },
    },
});

Rsbuild

Within your Rsbuild configuration, you will need to configure output.dataUriLimit to ensure .svg files are not inlined:

export default {
    // …
    output: {
        dataUriLimit: {
            svg: 0,
        },
    },
};

esbuild

With esbuild, you will need to enable the file loader for .svg files:

esbuild.build({
    // …
    loader: {
        ".svg": "file",
    },
});

[!NOTE] esbuild does not support bundling of assets when using the URL constructor, so you may need to additionally use a plugin to transform those into static import statements.

Contributing

Are you interested in helping StrataKit grow? You can submit feature requests or bugs by creating issues.

If you're interested in contributing code, please read CONTRIBUTING.md for more information.