1.1.0 • Published 1 year ago

@infini-components/text v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Text Component

A simple text component that displays a list of text items.

Props

PropTypeDescription
dataArray<{ text: string, who: string, color: string }>The data for the list items.
itemSizenumberThe size of each list item in pixels.
maxWidthnumberThe maximum width of the list container in pixels.

Example

import Text from './Text';

const data = { text: 'Hello, world!', who: 'Alice', color: '#0000ff' }, { text: 'Hi, there!', who: 'Bob', color: '#00ff00' }, { text: 'How are you?', who: 'Charlie', color: '#ff0000' }, ;

<Text data={data} itemSize={50} maxWidth={500} />

Installation To install the Text component, run the following command:

Copy code npm install --save @infini-components/text

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago