Skip to content

Commit

Permalink
chore: Adjust js doc for useExtendedMediaComponentConfiguration (#19454)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmch91 authored and anjana-bl committed Jan 9, 2025
1 parent 681b07b commit aeeb379
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -874,20 +874,13 @@ export interface FeatureTogglesInterface {
* ```ts
* provideConfig({
* pictureElementFormats: {
* mediaQueries: {
* 'max-width': '767px',
* ...
* },
* width: 50,
* height: 50,
* mediaQueries: '(max-width: 480px)',
* },
* })
* ```
*
* After activating this toggle, new inputs in `MediaComponent` — specifically
* `width`, `height`, and `sizes` — will be passed to the template as HTML attributes.
*
* Toggle activates `@Input() elementType: 'img' | 'picture' = 'img'` in `MediaComponent`
* Toggle activates `@Input() elementType: 'img' | 'picture' = 'img'`
* and `@Input() sizesForImgElement: string` in `MediaComponent`
*
*/
useExtendedMediaComponentConfiguration?: boolean;
Expand Down

0 comments on commit aeeb379

Please sign in to comment.