microsoft / vscode-prompt-tsx

MIT License
34 stars 1 forks source link

feat: allow proportional flex reservation #92

Closed connor4312 closed 1 month ago

connor4312 commented 1 month ago

Previously elements had to know the sizing of their container when reserving space, which was sometimes inconvenient and forced people to make unnecessary wrapper elements.

This adds a new syntax like e.g. <Foo flexGrow={1} flexReserve='/3' /> which reserves 1/3rd of the budget of the parent container.

connor4312 commented 1 month ago

fyi @jrieken