Skip to content

@line/bot-sdkDocs


@line/bot-sdk / FlexIcon

Type Alias: FlexIcon

FlexIcon: object & Offset

This component draws an icon.

Type declaration

aspectRatio?

optional aspectRatio: string

Aspect ratio of the icon. {width}:{height} format. The values of {width} and {height} must be in the range 1–100000. {height} can't be more than three times the value of {width}. The default value is 1:1.

margin?

optional margin: string | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl"

Minimum space between this box and the previous component in the parent box.

  • none does not set a space while the other values set a space whose size increases in the order of listing.
  • The default value is the value of the spacing property of the parent box.
  • If this box is the first component in the parent box, the margin property will be ignored.

size?

optional size: string | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "3xl" | "4xl" | "5xl"

Maximum size of the icon width. The size increases in the order of listing. The default value is md. For more information, see Icon, text, and span size in the Messaging API documentation.

type

type: "icon"

url

url: string

Image URL (Max character limit: 2000)

Protocol: HTTPS Image format: JPEG or PNG Maximum image size: 240×240 pixels Maximum data size: 1 MB

Defined in

lib/types.ts:1413