( props: PolymorphicProps<T, sheetDescriptionProps<T>>, )
| 107 | }; |
| 108 | |
| 109 | export const SheetDescription = <T extends ValidComponent = "p">( |
| 110 | props: PolymorphicProps<T, sheetDescriptionProps<T>>, |
| 111 | ) => { |
| 112 | const [local, rest] = splitProps(props as sheetDescriptionProps, ["class"]); |
| 113 | |
| 114 | return ( |
| 115 | <DialogPrimitive.Description |
| 116 | class={cn("text-sm text-muted-foreground", local.class)} |
| 117 | {...rest} |
| 118 | /> |
| 119 | ); |
| 120 | }; |
| 121 | |
| 122 | export const SheetHeader = (props: ComponentProps<"div">) => { |
| 123 | const [local, rest] = splitProps(props, ["class"]); |