PHPackages                             gilbertchiao/nova-custom-text-card - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. gilbertchiao/nova-custom-text-card

ActiveLibrary

gilbertchiao/nova-custom-text-card
==================================

A Laravel Nova card to customize card heading and content.

v1.0.0(4y ago)118MITPHPPHP &gt;=7.1.0

Since Jul 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gilbertchiao/nova-custom-text-card)[ Packagist](https://packagist.org/packages/gilbertchiao/nova-custom-text-card)[ RSS](/packages/gilbertchiao-nova-custom-text-card/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Nova - Custom Text Card
===============================

[](#laravel-nova---custom-text-card)

A Laravel Nova card to customize card heading and content.

[![image](docs/screenshot.png)](docs/screenshot.png)

Installation
------------

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require gilbertchiao/nova-custom-text-card
```

Then, register your card in the `cards` method of the `NovaServiceProvider` or your `Resource` class.

```
public function cards()
{
    return [
        (new CustomTextCard())
            ->heading('Card #1')
            ->content('default'),
        (new CustomTextCard())
            ->width('2/3')
            ->heading('Card #2')
            ->content('contentClass()')
            ->contentClass('text-5xl justify-center'),
        (new CustomTextCard())
            ->width('full')
            ->heading('Card #3')
            ->headingAlign('right')
            ->contentHtml('headingAlign() & contentHtml()')
    ];
}
```

Options
-------

[](#options)

### `width(string $width)`

[](#widthstring-width)

The width of the card.

### `content(string $content)`

[](#contentstring-content)

The content of the card.

### `contentClass(string $class)`

[](#contentclassstring-class)

The custom class of the content.

The default class of the content block is "flex text-90 font-light items-center", the custom class would append to it. If you want to replace the class, just prepend a "!" char to the $class, then the custom class would replace it.

Example:

- `->contentClass("justify-center") // "flex text-90 font-light items-center justify-center"`
- `->contentClass("!flex font-bold items-center justify-end") // "flex font-bold items-center justify-end"`

Note: This would not work for HTML-formatted content.

### `contentHtml(string $html)`

[](#contenthtmlstring-html)

The HTML-formatted content of the card. If you set both content() and contentHtml(), only contentHtml() would work.

### `forceFullWidth()`

[](#forcefullwidth)

Force the card to be full width. [A fix for nova cards order](https://github.com/laravel/nova-issues/issues/1895).

### `heading(string $heading)`

[](#headingstring-heading)

The heading of the card.

### `headingAlign(string $alignment)`

[](#headingalignstring-alignment)

The alignment of the heading (left, center, or right).

Note: This would not work for HTML-formatted heading.

### `headingHtml(string $html)`

[](#headinghtmlstring-html)

The HTML-formatted heading of the card.

### `background(string $backgroundStyle)`

[](#backgroundstring-backgroundstyle)

The CSS background property of the card.

### `border(string $borderStyle)`

[](#borderstring-borderstyle)

The CSS border property of the card.

### `color(string $colorStyle)`

[](#colorstring-colorstyle)

The CSS color property of the card.

### `height(string $height)`

[](#heightstring-height)

The CSS height property or the card (default, auto, or NNNpx).

Source
------

[](#source)

This package inspired by [Krato/NovaTextCard](https://github.com/Krato/NovaTextCard).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1764d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e021adf12734a685d568f5c76b51d7a59c28168d2ef9a1858f56372b120f55d?d=identicon)[gilbertchiao](/maintainers/gilbertchiao)

---

Top Contributors

[![gilbertchiao](https://avatars.githubusercontent.com/u/222855?v=4)](https://github.com/gilbertchiao "gilbertchiao (1 commits)")

---

Tags

laravelcardnova

### Embed Badge

![Health badge](/badges/gilbertchiao-nova-custom-text-card/health.svg)

```
[![Health](https://phpackages.com/badges/gilbertchiao-nova-custom-text-card/health.svg)](https://phpackages.com/packages/gilbertchiao-nova-custom-text-card)
```

###  Alternatives

[outl1ne/nova-detached-filters

This Laravel Nova package allows you to detach filters from the filter dropdown

64343.5k](/packages/outl1ne-nova-detached-filters)[nrml-co/nova-big-filter

A nice looking filter menu thats always open.

35310.9k](/packages/nrml-co-nova-big-filter)[ericlagarda/nova-text-card

A custom card for Laravel Nova to show Text in cards with some good options

20388.6k2](/packages/ericlagarda-nova-text-card)[awesome-nova/filter-card

A Laravel Nova card.

25126.1k](/packages/awesome-nova-filter-card)[digital-creative/resource-navigation-link

Create links to internal or external resources.

1044.0k](/packages/digital-creative-resource-navigation-link)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
