/Delphi-Bootstrap-Icons

Delphi unit for Bootstrap Icons

Primary LanguagePascalMIT LicenseMIT

Delphi Bootstrap Icons (.SVG)

The Bootstrap Icons library to use within Delphi.

Bootstrap logo

Open source SVG icon library with over 2,000 icons.

Bootstrap Icons preview

Usage

SVG Code

uses uBootstrapIcons

...


var HouseIconSVG := GetBootstrapIcon('house'); // Returns SVG Code
var ValveSteamIconSVG := GetBootstrapIcon('steam'); // Returns SVG Code
var BrushIconSVG := GetBootstrapIcon('brush'); // Returns SVG Code

var HouseIconSVG := GetBootstrapIcon('house', 24); // Returns SVG Code with Width/Height set to 24
var ValveSteamIconSVG := GetBootstrapIcon('steam', 24); // Returns SVG Code with Width/Height set to 24
var BrushIconSVG := GetBootstrapIcon('brush', 24); // Returns SVG Code with Width/Height set to 24

SVG Path Data

uses uBootstrapIcons

...


var HouseIconSVGPathData := GetBootstrapIconPathData('house'); // Returns SVG Path Data Text
var ValveSteamIconSVGPathData := GetBootstrapIconPathData('steam'); // Returns SVG Path Data Text
var BrushIconSVGPathData := GetBootstrapIconPathData('brush'); // Returns SVG Path Data Text

var HouseIconSVGPathData := GetBootstrapIconPathData('house', 24); // Returns SVG Path Data Text with Width/Height set to 24
var ValveSteamIconSVGPathData := GetBootstrapIconPathData('steam', 24); // Returns SVG Path Data Text with Width/Height set to 24
var BrushIconSVGPathData := GetBootstrapIconPathData('brush', 24); // Returns SVG Path Data Text with Width/Height set to 24

Other ways to use Bootstrap Icons: https://icons.getbootstrap.com/#usage

License

  • Bootstrap Icons are free and open source (MIT).