Skip to content

Commit

Permalink
feat: add popoverMaxHeight to TagList
Browse files Browse the repository at this point in the history
  • Loading branch information
radhi-nasser-scaleway committed Jan 13, 2025
1 parent 3ec293c commit 0005613
Show file tree
Hide file tree
Showing 6 changed files with 984 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-pets-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": minor
---

feat: Add `popoverMaxHeight` to `<TagList />`
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { Template } from './Template.stories'

export const PopoverMaxHeight = Template.bind({})

PopoverMaxHeight.parameters = {
docs: {
description: {
story:
'`popoverMaxHeight` can be used to control the popover max height when having a lot of items.',
},
},
}

PopoverMaxHeight.args = {
popoverTitle: 'Additional tags',
popoverMaxHeight: '200px',
tags: [
'very',
...new Array<string>(50).fill('item'),
'tooltip',
'scaleway',
'paris',
'cloud',
],
threshold: 5,
}

PopoverMaxHeight.decorators = [
Story => (
<div style={{ width: '200px' }}>
<Story />
</div>
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ export { Multiline } from './Multiline.stories'
export { Copiable } from './Copiable.stories'
export { Icons } from './Icons.stories'
export { ParentWithDefinedWidth } from './ParentWithWidth.stories'
export { PopoverMaxHeight } from './PopoverMaxHeight.stories'
Loading

0 comments on commit 0005613

Please sign in to comment.