Notification

Basic Card component

Card is based on a paper component

The plain basic card contain title, byline and content

warning This is a warning
<button id="62bed5470fb2b" class="c-button notification__button c-button__filled c-button__filled--primary c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="filled" aria-pressed="false" data-uid="62bed5470fb23">   
    <span class="c-button__label">
        
        
                    <span class="c-button__label-text ">
                Get notification
            </span>
        
    </span>
</button>

<!-- typography.blade.php -->
<div id="62bed5470fe0a" class="c-notification c-notification__spawn--bottom-left u-display--none" autoHideDuration="10000" maxAmount="3" direction="bottom-left" data-uid="62bed5470fe05">
    <!-- notice.blade.php -->
<div id="62bed547100f4" class="c-notice c-notice--danger" data-uid="62bed547100ee" aria-labelledby="notice__text__62bed547100f4">
    
    <!-- notice__ico -->
            <span class="c-notice__icon">
            <!-- icon.blade.php -->
    <i id="62bed547101c6" class="c-icon c-icon--size-md material-icons" translate="no" role="img" alt="" data-uid="62bed547101c1">
                    warning
            </i>
        </span>
        
    <!-- notice__title -->
    
    <!-- notice__text -->
    <span id="notice__text__62bed547100f4" for="" class="c-notice__message">
                    This is a warning
                
    </span>

</div></div>
@button(['type' => 'filled', 'text' => 'Get notification', 'color' => 'primary', 'classList' => ['notification__button']])
@endbutton


@notification(
    [
        'type' => 'danger',
        'message' => ['text' => 'This is a warning', 'size' => 'md'],
        'icon' => ['name' => 'warning', 'size' => 'md', 'color' => 'white'],
        'animation' => ['onPageLoad' => false, 'direction' => 'bottom-left'],
        'autoHideDuration' => '10000',
        'maxAmount' => '3'
    ]
)
@endnotification

Blade component parameters

Key Default value Type Available values Description
element div string - What element the markup will use.
slot string - The content
message [] array - -
type NULL - -
icon [] array - -
animation {"onPageLoad":false,"direction":null} array - -
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.
Settings location: /mnt/persist/www/docroot_styleguide_v2/source/library/source/php/Component/Notification/notification.json