Skip to content

dtinth/react-line-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-line-renderer

Create LINE Flex Messages using JSX.

<FlexMessage altText="Lorem ipsum!">
  <Carousel>
    <Bubble>
      <Box layout="vertical">
        <Text wrap>
          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
          eiusmod tempor incididunt ut labore et dolore magna aliqua.
        </Text>
      </Box>
    </Bubble>
    <Bubble
      hero={
        <Image
          url="https://i.imgur.com/mFHkiNw.png"
          size="full"
          aspectRatio="1.91:1"
        />
      }
    >
      <Box layout="baseline">
        <Text wrap flex={1} size="4xl" color="#ff0000">
          Left
        </Text>
        <Text wrap flex={1} size="3xl" color="#0000ff" align="end">
          Right
        </Text>
      </Box>
    </Bubble>
  </Carousel>
</FlexMessage>

Example

About

JSX to LINE Flex Message

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published