Skip to content

Commit

Permalink
fixup! feat(ui): initial reference studio UI tooltip component
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpyon committed Oct 16, 2023
1 parent c22b8e8 commit 109cf8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ module.exports = {
paths: [
{
name: '@sanity/ui',
importNames: ['Tooltip'],
importNames: ['Tooltip', 'TooltipProps'],
message:
'Please use the (more opinionated) exported components in sanity/src/ui instead.',
},
Expand Down
11 changes: 9 additions & 2 deletions packages/sanity/src/ui/tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import {Text, Tooltip as UITooltip, TooltipProps as UITooltipProps} from '@sanity/ui'
import {
Text,
Tooltip as UITooltip,
TooltipProps as UITooltipProps,
HotkeysProps as UIHotkeysProps,
} from '@sanity/ui'
import React from 'react'

/** @internal */
export interface TooltipProps
extends Pick<UITooltipProps, 'children' | 'disabled' | 'placement' | 'scheme'> {
extends Pick<UITooltipProps, 'children' | 'disabled' | 'placement' | 'scheme'>,
Pick<UIHotkeysProps, 'keys'> {
text: string
}

Expand Down

0 comments on commit 109cf8b

Please sign in to comment.