File tree 1 file changed +5
-4
lines changed
packages/ui/src/components
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
-->
15
15
<script lang =" ts" >
16
- import type { IntlString , Asset } from ' @hcengineering/platform'
17
- import type { AnySvelteComponent , TooltipAlignment } from ' ../types'
16
+ import type { Asset , IntlString } from ' @hcengineering/platform'
18
17
import { ComponentType } from ' svelte'
18
+ import type { AnySvelteComponent , TooltipAlignment } from ' ../types'
19
19
20
- import Icon from ' ./Icon.svelte'
21
20
import { tooltip } from ' ../tooltips'
21
+ import Icon from ' ./Icon.svelte'
22
22
23
23
export let label: IntlString = ' ' as IntlString
24
24
export let labelProps: any = undefined
29
29
export let action: (ev : MouseEvent ) => Promise <void > | void = async () => {}
30
30
export let invisible: boolean = false
31
31
export let disabled: boolean = false
32
+ export let keys: string [] | undefined = undefined
32
33
</script >
33
34
34
35
<button
35
36
class ="button {size }"
36
- use:tooltip ={{ label , direction , props : labelProps }}
37
+ use:tooltip ={{ label , direction , props : labelProps , keys }}
37
38
tabindex =" 0"
38
39
on:click |stopPropagation |preventDefault ={action }
39
40
on:contextmenu
You can’t perform that action at this time.
0 commit comments