Skip to content

Commit

Permalink
Document <Text> component (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Talon authored and Vadim Demedes committed Aug 27, 2017
1 parent 9c44d8a commit 6ae7acc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,20 @@ const Demo = (
);
```

The `<Text>` compoment is a simple wrapper around [the `chalk` API](https://github.com/chalk/chalk#api) it supports all of the chalk methods as `props`.

```jsx
import {Text} from "ink"

<Text rgb={[255, 255, 255]} bgKeyword="magenta">
Hello!
</Text>

<Text hex="#000000" bgHex="#FFFFFF">
Hey there
</Text>
```

## License

MIT © [Vadim Demedes](https://github.com/vadimdemedes)

0 comments on commit 6ae7acc

Please sign in to comment.