User
Last modified by Manuel Leduc on 2024/11/25 16:09
Description
The user extension provides UI components to display users.
User
N/A
Admin
N/A
Developer
Package name @xwiki/cristal-user-ui
User
- name: User
Props
import { UserDetails } from "@xwiki/cristal-authentication-api";
type Props = { user: UserDetails }
type Props = { user: UserDetails }
Usage
<script type="ts" setup>
import { UserDetails } from "@xwiki/cristal-authentication-api";
import { User } from "@xwiki/cristal-user-ui";
const user: UserDetails = ...;
</script>
<template>
<user :user="user" />
</template>
import { UserDetails } from "@xwiki/cristal-authentication-api";
import { User } from "@xwiki/cristal-user-ui";
const user: UserDetails = ...;
</script>
<template>
<user :user="user" />
</template>
Display the user name, and if the UserDetails have a profile link, wraps the user name in a link.
![France 2030 Logo](/xwiki/bin/download/Main/France2030Support/WebHome/Logo_France_2030.png?width=200&height=200&rev=1.2)
This project is being financed by the French State as part of the France 2030 program
Ce projet est financé par l’État Français dans le cadre de France 2030