We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fdcd57 commit 4e7720dCopy full SHA for 4e7720d
packages/core/src/jsx/jsx-attribute-value.ts
@@ -12,7 +12,6 @@ import { match, P } from "ts-pattern";
12
*/
13
export type AttributeValue =
14
| { kind: "boolean"; toStatic(): true } // Boolean attributes (e.g., disabled)
15
- // | { kind: "default"; toStatic(): unit | string } // Default attribute values
16
| { kind: "element"; node: TSESTree.JSXElement; toStatic(): unknown } // JSX element as value (e.g., <Component element=<JSXElement /> />)
17
| { kind: "literal"; node: TSESTree.Literal; toStatic(): TSESTree.Literal["value"] } // Literal values
18
| { kind: "expression"; node: TSESTree.JSXExpressionContainer["expression"]; toStatic(): unknown } // Expression attributes (e.g., {value}, {...props})
0 commit comments