needmorewood
needmorewood
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Slamerz on 7/25/2023 in #questions
Prod and Dev rendering differently
You could be using invalid tailwind syntax, maybe in your tailwind config it doesn't take into account of this page specifically. Could be a couple of things unfortunately
8 replies
TTCTheo's Typesafe Cult
Created by .vithis on 4/28/2023 in #questions
What react date picker are you using?
The UI package from shadcn is meant as a starting point to design, it's not like a component library component. Do yourself a favour and use it as the starting point especially if u are going to use that datepicker under the hood
5 replies
TTCTheo's Typesafe Cult
Created by needmorewood on 4/26/2023 in #questions
CVA Boolean type enables
figured it out thanks to https://youtu.be/T-Zv73yZ_QI?t=475 code is
const cell = cva('whitespace-nowrap px-3 py-4 text-sm font-normal',
{
variants: {
variant: {
date: 'text-blue-500',
primary: 'font-semibold text-slate-900',
},
link: {
true: 'underline text-red-900 hover:text-slate-700',
},
alignment: {
right: 'text-right',
left: 'text-left',
center: 'text-center',
},
},
});
const cell = cva('whitespace-nowrap px-3 py-4 text-sm font-normal',
{
variants: {
variant: {
date: 'text-blue-500',
primary: 'font-semibold text-slate-900',
},
link: {
true: 'underline text-red-900 hover:text-slate-700',
},
alignment: {
right: 'text-right',
left: 'text-left',
center: 'text-center',
},
},
});
3 replies
TTCTheo's Typesafe Cult
Created by nexxel on 1/16/2023 in #questions
a question for all the vue devs
maybe a little zod with validation, would be interesting to try
10 replies
TTCTheo's Typesafe Cult
Created by nexxel on 1/16/2023 in #questions
a question for all the vue devs
10 replies
TTCTheo's Typesafe Cult
Created by nexxel on 1/16/2023 in #questions
a question for all the vue devs
from the docs
export interface Props {
msg?: string
labels?: string[]
}

const props = withDefaults(defineProps<Props>(), {
msg: 'hello',
labels: () => ['one', 'two']
})
export interface Props {
msg?: string
labels?: string[]
}

const props = withDefaults(defineProps<Props>(), {
msg: 'hello',
labels: () => ['one', 'two']
})
10 replies
TTCTheo's Typesafe Cult
Created by nexxel on 1/16/2023 in #questions
a question for all the vue devs
probably a variation of the first one where you declare the props interface above it
10 replies