-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tree widget: Status of consuming Kiwi UI #1149
Comments
Would you like to display an error state for specific tree items? Or are you looking for an error state for the whole tree i.e. instead of displaying any nodes, it could say that the tree is empty or that there was a problem fetching data.
Can we simply expose a sub-label prop or would you like to update the styling of existing label i.e. to specify https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap?
Are you using
We have
You can use a
Take a look at <TextBox.Root>
<TextBox.Icon href={searchIcon} />
<TextBox.Input placeholder="Search" />
</TextBox.Root>
<IconButton
icon={searchIcon}
label="Search"
variant="ghost"
/>
This is available as a
We support |
|
We'll keep this in mind for implementing in the near future. I saw the design for it, but I feel unsure about the API and semantics right now.
You should really be using In the next release, we'll be adding full support for keyboard navigation, so hopefully you won't have any need to reach for DOM events. We'll make sure there is no propagation issue. Multi-selection is not going to be handled entirely by this prop. The purpose of
iTwinUI v3 offers a
It looks like you are asking for ProgressLinear, not ProgressRadial. We'll make a note of this, but in the meantime you can still use |
@mayank99, just to clarify - does this mean you're going to support multi-selection out of the box in your tree component? |
@grigasp, Maybe not immediately but yes I think we should support multi-selection (including ctrl and shift key combinations) in our Tree. For now, we can expose the original event through Unrelated: Could you or @MartynasStrazdas clarify what is meant by "ButtonGroup or equivalent component"? Where is it needed (perhaps the actions inside the tree, or the toolbar above the tree)? And what kind of "overflow logic" do you expect from this component? |
Reviewing what the existing trees look like might give you some idea. |
We need it for the tree header: I'd say this is low priority at the moment, because it's still not in the mockups, so it may turn out that we don't need it. |
I pulled in the first alphas release of the tree using kiwi into my test app.
It also might help to temporarily wrap the |
When playing with the tree widget, I noticed some visual and interaction issues (which you might already be aware of):
|
Thanks for feedback.
|
@mayank99 @GerardasB Been looking into the mockups for the tree, in the warning/error nodes part the warning text has color, how should we handle it on our side: will there be colors provided from kiwi side? Will there be an option for text component to have color/variant, or will we have to pick the color ourselves? |
@MartynasStrazdas We do have a We are working on a proper API for displaying errors in tree. In the meantime, my suggestion would be to apply custom CSS. You can use the Example code<Tree.Item
className="my-treeitem-error"
label="The hierarchy exceeds 1000 items. Provide additional filtering or increase the limit."
/> /* TODO: remove when Kiwi Tree has built-in support for displaying errors */
.my-tree-item-error > span {
color: var(--kiwi-color-text-attention-base);
} |
Current widget status
A short demo of the Kiwi-based tree widget at the current stage: https://github.com/user-attachments/assets/5a157d8c-c9a2-4410-9c74-eb331e7ae8d8
Current kiwi tree implementation: iTwin/presentation#847
iTwinUI v5 dependencies status
Below is a list of iTwinUI v5 components that have been successfully consumed or are still missing (based on status). The list is incomplete, more components / issues might appear in the future.
Components required for Tree rendering
Components required for Tree widget
Icons status
Tasks
Mockups status
Tasks
The text was updated successfully, but these errors were encountered: