0👍
You can try out this:
className={ "relative " +
(size === 'sm' && " h-10 w-10 ") +
(size === 'md' && " h-12 w-12 ") +
(size === 'lg' && " h-14 w-14 ")
}
Source:stackexchange.com
0👍
You can try out this:
className={ "relative " +
(size === 'sm' && " h-10 w-10 ") +
(size === 'md' && " h-12 w-12 ") +
(size === 'lg' && " h-14 w-14 ")
}