[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [parseListOfComponentValues](./css-parser-algorithms.parselistofcomponentvalues.md) ## parseListOfComponentValues() function Parse a list of component values. **Signature:** ```typescript export declare function parseListOfComponentValues(tokens: Array, options?: { onParseError?: (error: ParseError) => void; }): Array; ``` ## Parameters
Parameter Type Description
tokens Array<CSSToken>
options { onParseError?: (error: ParseError) => void; } _(Optional)_
**Returns:** Array<[ComponentValue](./css-parser-algorithms.componentvalue.md)> ## Example ```js import { tokenize } from '@csstools/css-tokenizer'; import { parseListOfComponentValues } from '@csstools/css-parser-algorithms'; parseListOfComponentValues(tokenize({ css: `20deg 30%` })); ```