Skip to content

implement <Flag /> #25

@Kelbie

Description

@Kelbie

I need something to easily manage users state

Only allows a user with email [email protected] see the {children}

<Flag  
    email="[email protected]"
>{children}</Flag>

Only allows an authenticated user to see the {children}

<Flag  
    isAuthenticated
>{children}</Flag>

Only allows users in the admin group to see the {children}

<Flag  
    group={["admin"]}
>{children}</Flag>

All these conditions should be composable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions