@financial-times/n-card
v8.0.3
Published
Holds Next FT’s card components
Downloads
683
Maintainers
Keywords
Readme
n-card
Inline documentation for required and optional properties is in each component's js file, these follow the JSDoc @param
format
Demos for configurations are found here with source code in ./demos
directory. The property objects are generally built in n-section and passed through.
The Video cards don't have demos but it will create a card with the right data attributes for oVideo to pick up when it gets instantiated on the page.
Using without n-section
This repo can now be used without requiring n section or using the JSON layout config. Simply use the Card
component and this will do the work to deciding which underlying card type to use.
If you are using n-section
don't use the Card
component, it won't work.