UNPKG

@wix/design-system

Version:

@wix/design-system

62 lines (58 loc) 2.21 kB
### 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. ### fill - type: ReactNode - description: Specify a color, gradient, image URL, SVG or a list of colors to be rendered as a preview content. ### selected - type: boolean - description: Specifies whether preview is selected or not. Selected item receives an outline border style. ### disabled - type: boolean - description: Specify whether preview should be disabled or not apply disabled styles ### aspectRatio - type: string | number - description: Control elements aspect ratio value ### size - type: FillPreviewSize - description: Controls the size of the element. ### as - type: string | ComponentType<any> - description: an element type to render as (string or function). ### href - type: string - description: URL of the page that link goes to ### prefixIcon - type: ReactElement<any, string | JSXElementConstructor<any>> - description: accepts prefix icon ### suffixIcon - type: ReactElement<any, string | JSXElementConstructor<any>> - description: accepts suffix icon ### contentClassName - type: string - description: class name to be added to the content span ### contentRef - type: RefObject<HTMLSpanElement> - description: React ref to be attached to the content span ### ButtonHTMLAttributes - type: All props from ButtonHTMLAttributes 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 ### RefAttributes - type: All props from RefAttributes that comes from @types/react/index.d.ts - description: No description ### Attributes - type: All props from Attributes that comes from @types/react/index.d.ts - description: No description