unreal
unreal
TTCTheo's Typesafe Cult
Created by unreal on 9/15/2023 in #questions
shadcn/ui variant typescript error
This is the exported ts interface:
const badgeVariants: (props?: (ConfigVariants<{
variant: {
default: string;
secondary: string;
destructive: string;
outline: string;
research: string;
design: string;
development: string;
};
}> & ClassProp) | undefined) => string`
const badgeVariants: (props?: (ConfigVariants<{
variant: {
default: string;
secondary: string;
destructive: string;
outline: string;
research: string;
design: string;
development: string;
};
}> & ClassProp) | undefined) => string`
4 replies
TTCTheo's Typesafe Cult
Created by unreal on 8/16/2023 in #questions
tailwind linter giving me a wrong warning?
best answer i can find is something like this https://stackoverflow.com/questions/73623088/tailwindcss-is-there-a-way-to-not-write-multiple-times-the-same-prefix-like but that seems to overcomplicate something that doesnt break my code just gives me a warning
12 replies
TTCTheo's Typesafe Cult
Created by unreal on 8/16/2023 in #questions
tailwind linter giving me a wrong warning?
altho im not sure how i would make it to be just "one group-hover" cuz i dont think theres a combined class in tailwind that would translate x+1 and y-1 simultaneously
12 replies
TTCTheo's Typesafe Cult
Created by unreal on 8/16/2023 in #questions
tailwind linter giving me a wrong warning?
ah, i think the issue might be in the group-hover, its applying group-hover twice
12 replies
TTCTheo's Typesafe Cult
Created by unreal on 8/16/2023 in #questions
tailwind linter giving me a wrong warning?
theyre applying the right classes which are 2 different ones
12 replies
TTCTheo's Typesafe Cult
Created by unreal on 8/16/2023 in #questions
tailwind linter giving me a wrong warning?
No description
12 replies
TTCTheo's Typesafe Cult
Created by unreal on 8/16/2023 in #questions
tailwind linter giving me a wrong warning?
12 replies