mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-02 01:15:31 +00:00
feat(ui): add secondary action slot to wizard footer
This commit is contained in:
1 file changed
+9
@@ -6,11 +6,20 @@ export const WIZARD_FOOTER_ACTION_TYPE = {
|
||||
export type WizardFooterActionType =
|
||||
(typeof WIZARD_FOOTER_ACTION_TYPE)[keyof typeof WIZARD_FOOTER_ACTION_TYPE];
|
||||
|
||||
export type WizardFooterSecondaryActionVariant = "outline" | "link";
|
||||
|
||||
export interface WizardFooterConfig {
|
||||
showBack: boolean;
|
||||
backLabel: string;
|
||||
backDisabled?: boolean;
|
||||
onBack?: () => void;
|
||||
showSecondaryAction?: boolean;
|
||||
secondaryActionLabel?: string;
|
||||
secondaryActionDisabled?: boolean;
|
||||
secondaryActionVariant?: WizardFooterSecondaryActionVariant;
|
||||
secondaryActionType?: WizardFooterActionType;
|
||||
secondaryActionFormId?: string;
|
||||
onSecondaryAction?: () => void;
|
||||
showAction: boolean;
|
||||
actionLabel: string;
|
||||
actionDisabled?: boolean;
|
||||
|
||||
Reference in new issue
Block a user