-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export type of css
function
#1151
Comments
majidsajadi
changed the title
export type of
export type of Apr 5, 2023
css
and styled
functionscss
function
If I understood your intentions properly you can get the type of |
Because the import { CSS, createStitches } from '@stitches/react'
export const {
styled,
css,
globalCss,
keyframes,
getCssText,
theme,
createTheme,
config,
} = createStitches({ /* your config here */ })
export type CSSProp = CSS<typeof config> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Im using React context API for exposing created stitches config to the components. I want to store
css
in context but there is no exported type.Describe the solution you'd like
Export
css
andstyled
types.Describe alternatives you've considered
Im currently using
typeof css
operator.The text was updated successfully, but these errors were encountered: