Package 

Class RoleBadgeKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit RoleBadge(String text, Color backgroundColor, Color textColor, Modifier modifier) A pill-shaped badge used to display a short label, such as a member role.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • RoleBadge

        @Composable() final static Unit RoleBadge(String text, Color backgroundColor, Color textColor, Modifier modifier)

        A pill-shaped badge used to display a short label, such as a member role.

        Provide the colors for the desired style, for example a primary (brand) color pair for an owner badge and a neutral color pair for other roles.

        Parameters:
        text - The label to display inside the badge.
        backgroundColor - The badge background color.
        textColor - The color of the text.
        modifier - The Modifier to be applied to this badge.