1.1.0 • Published 1 year ago
@infini-components/text v1.1.0
Text Component
A simple text component that displays a list of text items.
Props
Prop | Type | Description |
---|---|---|
data | Array<{ text: string, who: string, color: string }> | The data for the list items. |
itemSize | number | The size of each list item in pixels. |
maxWidth | number | The maximum width of the list container in pixels. |
Example
import Text from './Text';
<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