Ink: Box is not accepting percentages as sizes

Created on 25 Mar 2019  路  5Comments  路  Source: vadimdemedes/ink

In the examples/API is written:

<Box width="50%">X</Box>

but when trying it, I get this error:

Warning: Failed prop type: Invalid prop `width` of type `string` supplied to `Box`, expected `number`.

Is it not supported anymore?

Most helpful comment

It is supported, I just didn't publish a new release. I'm planning to publish one tomorrow.

All 5 comments

It is supported, I just didn't publish a new release. I'm planning to publish one tomorrow.

I see, just saw it in the API docs and wasn't working...
But if you release that would be great!
I'll test it promptly! ^^

You can use latest Ink via npm install vadimdemedes/ink btw! Just don't forget to move back to regular installation when you're done testing ;)

I'm going to postpone release until tomorrow, because I've pushed a few big changes and it's late now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goliney picture goliney  路  4Comments

colinking picture colinking  路  3Comments

asadm picture asadm  路  5Comments

colinking picture colinking  路  6Comments

treshugart picture treshugart  路  4Comments