Xamarin.CommunityToolkit by Microsoft

<PackageReference Include="Xamarin.CommunityToolkit" Version="2.0.6" />

 SnackBarActionOptions

public class SnackBarActionOptions
public static Func<Task> DefaultAction { get; set; }

public static Color DefaultBackgroundColor { get; set; }

public static Font DefaultFont { get; set; }

public static Color DefaultForegroundColor { get; set; }

public static Thickness DefaultPadding { get; set; }

public static string DefaultText { get; set; }

public Func<Task> Action { get; set; }

Gets or sets the action for the SnackBar action button.

public Color BackgroundColor { get; set; }

Gets or sets the background color for the SnackBar action button.

public Font Font { get; set; }

Gets or sets the font for the SnackBar action button.

public Color ForegroundColor { get; set; }

Gets or sets the font color for the SnackBar action button.

public Thickness Padding { get; set; }

Gets or sets the padding for the SnackBar message.

public string Text { get; set; }

Gets or sets the text for the SnackBar action button.