diff --git a/apps/www/public/registry/styles/default/list-element.json b/apps/www/public/registry/styles/default/list-element.json index bda4303cfa..e83a06039d 100644 --- a/apps/www/public/registry/styles/default/list-element.json +++ b/apps/www/public/registry/styles/default/list-element.json @@ -7,7 +7,7 @@ "files": [ { "name": "list-element.tsx", - "content": "import React from 'react';\nimport { withRef, withVariants } from '@udecode/cn';\nimport { PlateElement } from '@udecode/plate-common';\nimport { cva } from 'class-variance-authority';\n\nconst listVariants = cva('m-0 ps-6', {\n variants: {\n variant: {\n ul: 'list-disc [&_ul]:list-[circle] [&_ul_ul]:list-[square]',\n ol: 'list-decimal',\n },\n },\n});\n\nconst ListElementVariants = withVariants(PlateElement, listVariants, [\n 'variant',\n]);\n\nexport const ListElement = withRef(\n ({ className, children, variant = 'ul', ...props }, ref) => {\n const Component = variant!;\n\n return (\n \n {children}\n \n );\n }\n);\n" + "content": "import React from 'react';\nimport { withRef, withVariants } from '@udecode/cn';\nimport { PlateElement } from '@udecode/plate-common';\nimport { cva } from 'class-variance-authority';\n\nconst listVariants = cva('m-0 ps-6', {\n variants: {\n variant: {\n ul: 'list-disc [&_ul]:list-[circle] [&_ul_ul]:list-[square]',\n ol: 'list-decimal',\n },\n },\n});\n\nconst ListElementVariants = withVariants(PlateElement, listVariants, [\n 'variant',\n]);\n\nexport const ListElement = withRef(\n ({ children, variant = 'ul', ...props }, ref) => {\n const Component = variant!;\n\n return (\n \n {children}\n \n );\n }\n);\n" } ], "type": "components:plate-ui"