A
A
Anastasia2022-02-16 16:23:48
Sass
Anastasia, 2022-02-16 16:23:48

Is ClassValue the same as the result of executing the clsx function or something else?

import clsx, { ClassValue } from 'clsx';

Is ClassValue the same as the result of executing the clsx function or something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2022-02-16
@KnopkaNen

This is a type alias that combines all the data types that the clsx module can accept .
It is only needed by the module itself to filter out inappropriate inputs.

export type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question