1- | We stand with Ukraine | 🇺🇦 |
2- | :---------------------: | :----- |
1+ | We stand with Ukraine | 🇺🇦 |
2+ | :-------------------: | :-- |
33
44# Nova HTML Card
55
@@ -12,7 +12,6 @@ Adds a card to the Laravel Nova dashboard with any arbitrary HTML content.
1212
1313![ image] ( https://user-images.githubusercontent.com/5278175/60386958-35899080-9aa5-11e9-8e1f-b29e95c80d2c.png )
1414
15-
1615## Installation
1716
1817You can install the package in to a Laravel app that uses [ Nova] ( https://nova.laravel.com ) via composer:
@@ -38,37 +37,34 @@ public function cards()
3837}
3938```
4039
41-
4240### Options
4341
44- - Set content
45- - ` ->html('<h1>Hello!</h1>') ` : Set HTML or plain content.
46- - ` ->markdown('# Hello!') ` : Set Markdown content that will be converted into HTML.
47- - ` ->view('path.to.view', []) ` : Specify blade view file and optionally pass an array of data to view.
48- - Styling
49- - ` ->center(false) ` : Center card's content. ` false ` by default.
50- - ` ->withoutCardStyles(true) ` : Whether to use standard Nova Card styles for a card (background, padding, etc). ` false ` by default.
51-
42+ - Set content
43+ - ` ->html('<h1>Hello!</h1>') ` : Set HTML or plain content.
44+ - ` ->markdown('# Hello!') ` : Set Markdown content that will be converted into HTML.
45+ - ` ->view('path.to.view', []) ` : Specify blade view file and optionally pass an array of data to view.
46+ - Styling
47+ - ` ->center(false) ` : Center card's content. ` false ` by default.
48+ - ` ->withoutCardStyles(true) ` : Whether to use standard Nova Card styles for a card (background, padding, etc). ` false ` by default.
49+ - ` ->withBasicStyles() ` : Adds some basic styling to the HTML elements in the card. Useful when rendering Markdown.
5250
5351## Why this package?
5452
5553There are a few packages with similar functionality.
5654Our package provides an API to cover all cases covered by these packages plus additionally provides some unique features like:
57- - markdown support
58- - easy switch between class Nova-card look and raw-HTML look
59- - Simple, Laravel-like API
6055
56+ - Markdown support
57+ - easy switch between class Nova-card look and raw-HTML look
58+ - Simple, Laravel-like API
6159
6260## Changelog
6361
6462Please see [ Releases] ( https://github.com/InteractionDesignFoundation/nova-html-card/releases ) for more information on what has changed recently.
6563
66-
6764## Contributing
6865
6966Please see [ CONTRIBUTING] ( CONTRIBUTING.md ) for details.
7067
71-
7268## License
7369
7470The MIT License (MIT). Please see [ License File] ( LICENSE ) for more information.
0 commit comments