You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

blade-icons.php 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Icons Sets
  6. |--------------------------------------------------------------------------
  7. |
  8. | With this config option you can define a couple of
  9. | default icon sets. Provide a key name for your icon
  10. | set and a combination from the options below.
  11. |
  12. */
  13. 'sets' => [
  14. 'default' => [
  15. /*
  16. |-----------------------------------------------------------------
  17. | Icons Path
  18. |-----------------------------------------------------------------
  19. |
  20. | Provide the relative path from your app root to your SVG icons
  21. | directory. Icons are loaded recursively so there's no need to
  22. | list every sub-directory.
  23. |
  24. | Relative to the disk root when the disk option is set.
  25. |
  26. */
  27. 'path' => 'resources/svg',
  28. /*
  29. |-----------------------------------------------------------------
  30. | Filesystem Disk
  31. |-----------------------------------------------------------------
  32. |
  33. | Optionally, provide a specific filesystem disk to read
  34. | icons from. When defining a disk, the "path" option
  35. | starts relatively from the disk root.
  36. |
  37. */
  38. 'disk' => '',
  39. /*
  40. |-----------------------------------------------------------------
  41. | Default Prefix
  42. |-----------------------------------------------------------------
  43. |
  44. | This config option allows you to define a default prefix for
  45. | your icons. The dash separator will be applied automatically
  46. | to every icon name. It's required and needs to be unique.
  47. |
  48. */
  49. 'prefix' => 'icon',
  50. /*
  51. |-----------------------------------------------------------------
  52. | Fallback Icon
  53. |-----------------------------------------------------------------
  54. |
  55. | This config option allows you to define a fallback
  56. | icon when an icon in this set cannot be found.
  57. |
  58. */
  59. 'fallback' => '',
  60. /*
  61. |-----------------------------------------------------------------
  62. | Default Set Classes
  63. |-----------------------------------------------------------------
  64. |
  65. | This config option allows you to define some classes which
  66. | will be applied by default to all icons within this set.
  67. |
  68. */
  69. 'class' => '',
  70. /*
  71. |-----------------------------------------------------------------
  72. | Default Set Attributes
  73. |-----------------------------------------------------------------
  74. |
  75. | This config option allows you to define some attributes which
  76. | will be applied by default to all icons within this set.
  77. |
  78. */
  79. 'attributes' => [
  80. // 'width' => 50,
  81. // 'height' => 50,
  82. ],
  83. ],
  84. ],
  85. /*
  86. |--------------------------------------------------------------------------
  87. | Global Default Classes
  88. |--------------------------------------------------------------------------
  89. |
  90. | This config option allows you to define some classes which
  91. | will be applied by default to all icons.
  92. |
  93. */
  94. 'class' => '',
  95. /*
  96. |--------------------------------------------------------------------------
  97. | Global Default Attributes
  98. |--------------------------------------------------------------------------
  99. |
  100. | This config option allows you to define some attributes which
  101. | will be applied by default to all icons.
  102. |
  103. */
  104. 'attributes' => [
  105. // 'width' => 50,
  106. // 'height' => 50,
  107. ],
  108. /*
  109. |--------------------------------------------------------------------------
  110. | Global Fallback Icon
  111. |--------------------------------------------------------------------------
  112. |
  113. | This config option allows you to define a global fallback
  114. | icon when an icon in any set cannot be found. It can
  115. | reference any icon from any configured set.
  116. |
  117. */
  118. 'fallback' => '',
  119. /*
  120. |--------------------------------------------------------------------------
  121. | Components
  122. |--------------------------------------------------------------------------
  123. |
  124. | These config options allow you to define some
  125. | settings related to Blade Components.
  126. |
  127. */
  128. 'components' => [
  129. /*
  130. |----------------------------------------------------------------------
  131. | Disable Components
  132. |----------------------------------------------------------------------
  133. |
  134. | This config option allows you to disable Blade components
  135. | completely. It's useful to avoid performance problems
  136. | when working with large icon libraries.
  137. |
  138. */
  139. 'disabled' => false,
  140. /*
  141. |----------------------------------------------------------------------
  142. | Default Icon Component Name
  143. |----------------------------------------------------------------------
  144. |
  145. | This config option allows you to define the name
  146. | for the default Icon class component.
  147. |
  148. */
  149. 'default' => 'icon',
  150. ],
  151. ];