Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
❓ Type of change
📚 Description
This is inspired Tremor List discussed by #310. Basically, an ordered/unordered list on amphetamines. It's mostly syntactic sugar for most List operations that you would have in the wild: adding separators, adding icons or indicators in each side, and so forth.
The basic usage for the list is just to use an array of items (much like
UDropdown
), but also let the developer have total control with slots.From:
To:
This abstract approach to lists would enable anything, like Navigation Bradcrumbs in #157 and implemented in #506, to interactive lists with additional components as children.
ol
) or unordered (ul
) for semantic reasons.div
by default, with custom color, and can be disabled.id
prop. Good for animation libraries.If an Item uses the
to
orclick
properties, the item will be aUButton
withlink
, unless thevariant
property says otherwise. That's as far as button-as-item support there is, and should work for easy breadcrumbing.Anything more advanced than that, and the developer can just use the default slot to put its own things, as these will be wrapped as the content of each
<li>
.📝 Checklist