In the Forge UI kit documentation for Avatar is says, that
In UI kit version 0.15.0 and later, the
Avatar
component has been removed and is replaced by the User component.
I am trying to use User, but I get an error message that User is not possible. Avatar works fine.
As I have not specified a specific version in my code, I assume I am using latest, and that would be UI kit 0.16.0 since Dec, right? So why I cannot use User and UserGroup?
import ForgeUI, { Text, Avatar, AvatarStack, User, UserGroup } from '@forge/ui'
Or do I have to update my local npm to use always the latest version? I checked using npm list --depth=0
that I have locally @forge/ui@0.13.1
installed. Guess this the root cause? Also my package-lock.json
shows 0.13.1.
"@forge/ui": {
"version": "0.13.1",
"resolved": "https://registry.npmjs.org/@forge/ui/-/ui-0.13.1.tgz",
"integrity": "sha512-al9Cv52Jqwz6XtJLzNXAWNYIljfKKHRqrjVJG99nu9QIzz9ri/efdz3axjotIy4Mh002jQxdvpjNL3LTVXWE8w==",
"requires": {
"fast-json-stable-stringify": "^2.1.0",
"sha.js": "^2.4.11",
"tslib": "^1.11.0"
}
},
How do I update to newer version of Forge UI? npm update
does not change anything. Sorry, I am new to npm. Do I have to change package-lock.json
manually to update to new version of Forge UI?
Also I wonder if Avatar resp. User can be configured to use the smaller 24x24 avatar image. Any idea?
I have a list of user names to show (not only the avatar images like in AvatarStack or UserStack) and I don’t like the huge avatar images of Avatar or User and also not the appearing as a lozenge when using User or UserStack inside Text as documented.