couds / react-bulma-components

React components for Bulma framework
MIT License
1.2k stars 129 forks source link

ColumnSize Typescript definition is not exported #415

Open sambolias opened 1 year ago

sambolias commented 1 year ago

Describe the bug

I can find the type definition for ColumnSize, but the type doesn't appear to be exported or available from the library.

When I try to set a Columns.Column size or offset prop from a number variable it isn't accepted. I can use the any type to make it work, but ideally I could use the actual type those properties expect.

To Reproduce Steps to reproduce the behavior:

const [size, offset]: any[] = isAdditional ? [6, 2] : [8, 0]
...
<Columns.Column size={size} offset={offset}>

Expected behavior

Available types for typescript

Versions