2.0.1 • Published 8 months ago
@licuido-ui/ui_time-line v2.0.1
TimeLine
The timeline displays a list of events in chronological order.
Author
- @author Henry Dyson J henry@crayond.co
Link
PlayGround
Installation
npm i @licuido-ui//ui_time-lineImport component
import { TimeLine } from '@licuido-ui//ui_time-line';Usage
<TimeLine timeLineData={[]} />Image

Sample Code
<TimeLine
variation2={false}
rootStyle={{}}
timeLinePosition={'right'}
TimelineConnectorColor={''}
TimelineConnectorWidth={2}
TimelineDotProfileUrlHeight={24}
TimelineDotProfileUrlWidth={24}
TimelineDotProfileUrlRadius={1}
TimelineDotVariant={'filled'}
TimelineDotHeight={1.2}
TimelineDotWidth={1.2}
TimelineDotColor={'#929292'}
TimelineDotBorder={''}
profileUrlHeight={24}
profileUrlWidth={24}
profileUrlRadius={5}
cardWidth={0}
cardMinWidth={212}
cardMaxWidth={0}
cardMaxHeight={0}
cardMinHeight={130}
cardHeight={0}
CardBackground={'#FFFFFF'}
CardHoverStyle={{}}
CardStyle={{}}
hoverBorderStyle={''}
hoverBgColor={'#EEEE'}
text1Size={10}
text1Color={'#929292'}
text2Size={12}
text2Color={'#3B3B3B'}
text3Size={10}
text3Color={'#929292'}
text1Styles={{}}
text2Styles={{}}
text3Styles={{}}
handleClick={() => false}
profileComponentContainer={{}}
timeLineData={[
{
id: 1,
text1: '18 Mins ago',
text2: 'Elit convallis',
text3: 'invited you',
profileComponent: '',
profileUrl:
'https://cdna.artstation.com/p/assets/images/images/053/054/138/large/avetetsuya-studios-alien.jpg?1661309922',
},
{
id: 2,
text1: '18 Mins ago',
text2:
'Duis mauris augue, efficitur eu arcu sit amet, posuere dignissim neque. Aenean enim sem, pharetra et magna sit amet, luctus aliquet nibh.',
text3: '',
profileComponent: '',
profileUrl:
'https://cdna.artstation.com/p/assets/images/images/053/054/138/large/avetetsuya-studios-alien.jpg?1661309922',
},]}
/>Props
| Name | Description | Default | Control |
|---|---|---|---|
| variant | "basic" or "withProfile" | basic | basic |
| rootStyle | {} | rootStyle : {} | |
| timeLinePosition | "left" or "right" | right | right |
| TimelineConnectorColor | string | #fd2d2 | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| TimelineConnectorWidth | number | 200 | - |
| TimelineDotProfileUrlHeight | number | 300 | - |
| TimelineDotProfileUrlWidth | number | 150 | - |
| TimelineDotProfileUrlRadius | number | 150 | - |
| TimelineDotVariant | "filled" or "outlined" | "filled" | filled |
| TimelineDotHeight | number | 20 | - |
| TimelineDotWidth | number | 20 | - |
| TimelineDotColor | string | #fd2d2 | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)) |
| TimelineDotBorder | string | 1px solid #fd2d2 | |
| profileUrlHeight | number | 30 | - |
| profileUrlWidth | number | 40 | - |
| profileUrlRadius | number | 20 | - |
| cardWidth | number | 30 | - |
| cardMinWidth | number | 20 | - |
| cardMaxWidth | number | 30 | - |
| cardMaxHeight | number | 40 | - |
| cardMinHeight | number | 39 | - |
| cardHeight | number | 20 | - |
| CardBackground | string | - | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)); |
| CardHoverStyle | SxProps<{}> | {} | CardHoverStyle : {} |
| CardStyle | SxProps<{}> | {} | CardStyle : {} |
| hoverBorderStyle | string | - | |
| hoverBgColor | string | - | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)); |
| text1Size | number | - | |
| text1Color | string | - | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)); |
| text2Size | number | - | |
| text2Color | string | - | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)); |
| text3Size | number | - | |
| text3Color | string | - | linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)); |
| text1Styles | SxProps<{}> | - | text1Styles : {} |
| text2Styles | SxProps<{}> | - | text2Styles : {} |
| text3Styles | SxProps<{}> | - | text3Styles : {} |
| handleClick | ()=>{}() => void | - | - |
| profileComponentContainer | SxProps<{}> | - | profileComponentContainer : {} |
| timeLineData | { id: number; text1: string; text2: string; text3: string; profileComponent: ReactNode; profileUrl: string; }[] | [] | [] |
| className | string | - | Set string |
| id | string | string | string |
| sx | SxProps<Theme> | - | Set |
2.0.1
8 months ago