Datebadge
Datebadge
19
May
<!-- datebadge.blade.php -->
<div class="c-datebadge c-datebadge--md" data-uid="682b5183d5ab9">
<div class="c-datebadge__daymonth">
<!-- typography.blade.php original: span -->
<span class="c-typography c-datebadge__date c-typography__variant--h1" data-uid="682b5183d5bb4">
19
</span> <!-- typography.blade.php original: span -->
<span class="c-typography c-datebadge__month c-typography__variant--h4" data-uid="682b5183d5c04">
May
</span> </div>
</div>
@datebadge([
'date' => date("Y-m-d")
])
@enddatebadge
Datebadge
19
May
<!-- datebadge.blade.php -->
<div class="c-datebadge c-datebadge--sm" data-uid="682b5183d5d3d">
<div class="c-datebadge__daymonth">
<!-- typography.blade.php original: span -->
<span class="c-typography c-datebadge__date c-typography__variant--h1" data-uid="682b5183d5d7e">
19
</span> <!-- typography.blade.php original: span -->
<span class="c-typography c-datebadge__month c-typography__variant--h4" data-uid="682b5183d5db2">
May
</span> </div>
</div>
@datebadge([
'date' => date("Y-m-d"),
'size' => 'sm'
])
@enddatebadge
Datebadge with time
19
May
<!-- datebadge.blade.php -->
<div class="c-datebadge c-datebadge--md" data-uid="682b5183d5eea">
<div class="c-datebadge__daymonth">
<!-- typography.blade.php original: span -->
<span class="c-typography c-datebadge__date c-typography__variant--h1" data-uid="682b5183d5f22">
19
</span> <!-- typography.blade.php original: span -->
<span class="c-typography c-datebadge__month c-typography__variant--h4" data-uid="682b5183d5f57">
May
</span> </div>
<div class="c-datebadge__time">
<!-- icon.blade.php -->
<span class="c-icon c-icon--access-time c-icon--material c-icon--material-access_time material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-inherit" material-symbol="access_time" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" aria-hidden="false" data-uid="682b5183d6076">
</span>
<!-- typography.blade.php original: span -->
<span class="c-typography c-typography__variant--meta" data-uid="682b5183d60c6">
15:42
</span> </div>
</div>
@datebadge([
'date' => date("Y-m-d H:i:s"),
'includeTime' => true
])
@enddatebadge
Datebadge with time, small variant
19
May
<!-- datebadge.blade.php -->
<div class="c-datebadge c-datebadge--sm" data-uid="682b5183d6202">
<div class="c-datebadge__daymonth">
<!-- typography.blade.php original: span -->
<span class="c-typography c-datebadge__date c-typography__variant--h1" data-uid="682b5183d623c">
19
</span> <!-- typography.blade.php original: span -->
<span class="c-typography c-datebadge__month c-typography__variant--h4" data-uid="682b5183d6272">
May
</span> </div>
<div class="c-datebadge__time">
<!-- icon.blade.php -->
<span class="c-icon c-icon--access-time c-icon--material c-icon--material-access_time material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-inherit" material-symbol="access_time" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" aria-hidden="false" data-uid="682b5183d62b1">
</span>
<!-- typography.blade.php original: span -->
<span class="c-typography c-typography__variant--meta" data-uid="682b5183d62f2">
15:42
</span> </div>
</div>
@datebadge([
'date' => date("Y-m-d H:i:s"),
'includeTime' => true,
'size' => 'sm'
])
@enddatebadge
Blade component parameters
Key | Default value | Type | Available values | Description |
date | false | boolean | - | A date string in any format. |
includeTime | false | boolean | - | Will add a box with timestamp below the date. |
size | md | string | - | The size of the datebadge. Can be either 'sm' or 'md'. |
id | string | - | The DOM id of the component. | |
classList | [] | array | - | Array containing wrapping classes array |
attributeList | [] | array | - | Array containing keys and values rendered as attributes |
containerAware | false | boolean | true/false | Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component. |