Nelmin
Nelmin
Explore posts from servers
SSolidJS
Created by Nelmin on 2/23/2023 in #support
Components Props and Text
this works thank you
9 replies
SSolidJS
Created by Nelmin on 2/23/2023 in #support
Components Props and Text
but the 2. doesnt work
9 replies
SSolidJS
Created by Nelmin on 2/23/2023 in #support
Components Props and Text
this one works
9 replies
SSolidJS
Created by Nelmin on 2/23/2023 in #support
Components Props and Text
import {z} from "zod";

const ButtonSchema = z.object({
text: z.string(),
type: z.enum(["primary", "success", "danger"]),
});

type ButtonProps = z.infer<typeof ButtonSchema>;
import {z} from "zod";

const ButtonSchema = z.object({
text: z.string(),
type: z.enum(["primary", "success", "danger"]),
});

type ButtonProps = z.infer<typeof ButtonSchema>;
9 replies