UNPKG
use-css-dom
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
React hook to read and convert CSS variables from the DOM
use-css-dom
/
dist
/
index.d.ts
4 lines
(3 loc)
•
204 B
TypeScript
View Raw
1
2
3
4
type
ColorType
=
"oklch"
|
"rgb"
|
"rgba"
|
"hex"
|
"hsl"
|
"hsla"
|
"original"
;
export
declare
function
useCSSVariable
(
variableName
:
string
,
opacity
?:
number
,
returnType
?:
ColorType
):
string
;
export
{};