<?php declare(strict_types=1); namespace Termwind\Components; final class BreakLine extends Element { /** * Get the string representation of the element. */ public function toString(): string { $display = $this->styles->getProperties()['styles']['display'] ?? 'inline'; if ($display === 'hidden') { return ''; } if ($display === 'block') { return parent::toString(); } return parent::toString()."\r"; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Anchor.php | File | 104 B | 0644 |
|
BreakLine.php | File | 509 B | 0644 |
|
Dd.php | File | 163 B | 0644 |
|
Div.php | File | 156 B | 0644 |
|
Dl.php | File | 155 B | 0644 |
|
Dt.php | File | 168 B | 0644 |
|
Element.php | File | 3.2 KB | 0644 |
|
Hr.php | File | 167 B | 0644 |
|
Li.php | File | 155 B | 0644 |
|
Ol.php | File | 171 B | 0644 |
|
Paragraph.php | File | 170 B | 0644 |
|
Raw.php | File | 330 B | 0644 |
|
Span.php | File | 112 B | 0644 |
|
Ul.php | File | 168 B | 0644 |
|