0.2.6 • Published 1 year ago

@veridical/nodes v0.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Nodes for veridical

ImageNode

Node to display image

const image = $createImageNode({
    src,
    altText,
    naturalWidth: parseInt(width),
    naturalHeight: parseInt(height),
    isMaxWidth: isMaxWidth,
});
  • naturalWidth and naturalHeight are used to find aspect ratio for suspense fallback.

Theme

export const veridicalTheme: VeridicalThemeClasses = {
    veridicalImage: {
        image: 'w-full h-[420px] rounded-sm cursor-pointer',
        selected: 'box-border border-2 border-editor-button-primary',
        container: 'flex flex-row justify-center my-4 mx-0',
        fallback: 'bg-gray-600 animate-pulse h-[420px]',
    },
};
0.2.1

1 year ago

0.2.0

1 year ago

0.2.6

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.1.2

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago