Skip to content
Discussion options

You must be logged in to vote

Hi @NilsBaumgartner1994

Each avatar style comes with a JSON schema. From this JSON schema you can read the options.

import * as style from '@dicebear/avataaars';

let clothValues = style.schema.properties.clothes.items.enum;

/**
[
    "blazer",
    "blazerAndShirt",
    "blazerAndSweater",
    "sweater",
    "collarAndSweater",
    "shirt",
    "graphicShirt",
    "shirtCrewNeck",
    "shirtScoopNeck",
    "shirtVNeck",
    "hoodie",
    "overall"
]
*/

See also:

If you are looking for autocompletion, you could use Typescript or Visual Studio Code.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FlorianKoerner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #227 on June 12, 2022 10:36.