Skip to content

Commit

Permalink
feat(rich-tooltip): add open prop to component
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielduete committed Feb 14, 2025
1 parent c0a5257 commit 7cd6a7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export namespace Components {
"actionText"?: string;
"element": string;
"label"?: string;
"open": boolean;
"placement": | 'top'
| 'top-start'
| 'top-end'
Expand Down Expand Up @@ -1028,6 +1029,7 @@ declare namespace LocalJSX {
"element"?: string;
"label"?: string;
"onButtonAction"?: (event: AtomRichTooltipCustomEvent<void>) => void;
"open"?: boolean;
"placement"?: | 'top'
| 'top-start'
| 'top-end'
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/components/rich-tooltip/rich-tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class AtomRichTooltip {
@Prop() action: 'hover' | 'click' = 'hover'
@Prop() label?: string
@Prop() actionText?: string
@Prop({ mutable: true }) open = false

@Event() buttonAction?: EventEmitter<void>

Expand All @@ -39,6 +40,7 @@ export class AtomRichTooltip {
element={this.element}
placement={this.placement}
action={this.action}
open={this.open}
class='rich-tooltip'
>
<div class='rich-tooltip__content'>
Expand Down

0 comments on commit 7cd6a7e

Please sign in to comment.