@ng-icons/ionicons 25.2.0 → 25.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -138,3 +138,45 @@ import { heroUsers } from '@ng-icons/heroicons/outline';
|
|
|
138
138
|
})
|
|
139
139
|
export class AppComponent {}
|
|
140
140
|
```
|
|
141
|
+
|
|
142
|
+
### Global Configuration
|
|
143
|
+
|
|
144
|
+
You can configure the default size of icons by providing a `NgIconsConfig` object to the `provideNgIconsConfig`:
|
|
145
|
+
|
|
146
|
+
#### NgModule
|
|
147
|
+
|
|
148
|
+
```ts
|
|
149
|
+
import { NgIconsModule, provideNgIconsConfig } from '@ng-icons/core';
|
|
150
|
+
import { featherAirplay } from '@ng-icons/feather-icons';
|
|
151
|
+
|
|
152
|
+
@NgModule({
|
|
153
|
+
imports: [
|
|
154
|
+
BrowserModule,
|
|
155
|
+
NgIconsModule.withIcons({ featherAirplay, heroUsers }),
|
|
156
|
+
],
|
|
157
|
+
providers: [
|
|
158
|
+
provideNgIconsConfig({
|
|
159
|
+
size: '1.5em',
|
|
160
|
+
}),
|
|
161
|
+
],
|
|
162
|
+
})
|
|
163
|
+
export class AppModule {}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
#### Standalone
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
import {
|
|
170
|
+
NgIconComponent,
|
|
171
|
+
provideIcons,
|
|
172
|
+
provideNgIconsConfig,
|
|
173
|
+
} from '@ng-icons/core';
|
|
174
|
+
|
|
175
|
+
bootstrapApplication(AppComponent, {
|
|
176
|
+
providers: [
|
|
177
|
+
provideNgIconsConfig({
|
|
178
|
+
size: '1.5em',
|
|
179
|
+
}),
|
|
180
|
+
],
|
|
181
|
+
});
|
|
182
|
+
```
|