UNPKG

@wix/design-system

Version:

@wix/design-system

51 lines (47 loc) 1.91 kB
### borderRadius - type: BorderRadius<string | number> - description: Sets the border radius of the image box. ### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in the tests. ### className - type: string - description: Specifies a CSS class name to be appended to the component's root element. ### fit - type: ImageFit - description: Specifies image fit mode inside a box. Check [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property values for more info. ### position - type: string - description: Specifies source content position inside of an image box. Accepts any valid [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position_value) value. ### showBorder - type: boolean - description: Specifies whether to display a border around an image. ### transparent - type: boolean - description: Specifies whether background of Image is transparent ### alt - type: string - description: Specifies an alt text for an image. If not provided, will be set to empty and treated as decorative. ### width - type: string | number - description: Sets the width of the image box. ### height - type: string | number - description: Sets the height of the image box. ### src - type: string - description: Specifies an URL link to image source. If not provided, a default placeholder image will be displayed. ### ImgHTMLAttributes - type: All props from ImgHTMLAttributes that comes from @types/react/index.d.ts - description: No description ### HTMLAttributes - type: All props from HTMLAttributes that comes from @types/react/index.d.ts - description: No description ### AriaAttributes - type: All props from AriaAttributes that comes from @types/react/index.d.ts - description: No description ### DOMAttributes - type: All props from DOMAttributes that comes from @types/react/index.d.ts - description: No description