Skip to content

Commit

Permalink
feat(sdk,secondary-button): add position in state
Browse files Browse the repository at this point in the history
  • Loading branch information
heyqbnk committed Oct 1, 2024
1 parent 705e047 commit f40e575
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/sdk/src/scopes/components/secondary-button/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RGB } from '@telegram-apps/bridge';
import type { RGB, SecondaryButtonPosition } from '@telegram-apps/bridge';

export interface State {
/**
Expand All @@ -21,6 +21,10 @@ export interface State {
* True if the Secondary Button is visible.
*/
isVisible: boolean;
/**
* The button position relative to the main one.
*/
position: SecondaryButtonPosition;
/**
* The Secondary Button text.
*/
Expand Down

0 comments on commit f40e575

Please sign in to comment.