Appearance
@line/bot-sdk / FlexIcon
Type Alias: FlexIcon
FlexIcon =
object&Offset
Defined in: lib/types.ts:1314
This component draws an icon.
Type Declaration
aspectRatio?
optionalaspectRatio: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?
optionalmargin:string|"none"|"xs"|"sm"|"md"|"lg"|"xl"|"xxl"
Minimum space between this box and the previous component in the parent box.
nonedoes 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
spacingproperty of the parent box. - If this box is the first component in the parent box, the
marginproperty will be ignored.
size?
optionalsize: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