Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #101 from helsingborg-stad/feature/divider-component
Browse files Browse the repository at this point in the history
Divider component
  • Loading branch information
silvergrund authored Apr 23, 2020
2 parents ee8e496 + de23849 commit 0b16a68
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Component/Divider/Divider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace BladeComponentLibrary\Component\Divider;

/**
* Class Dropdown
* @package BladeComponentLibrary\Component\Dropdown
*/
class Divider extends \BladeComponentLibrary\Component\BaseController
{

public function init() {
//Extract array for eazy access (fetch only)
extract($this->data);
}
}
2 changes: 2 additions & 0 deletions src/Component/Divider/divider.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<{{$componentElement}} class="{{$class}} {{$class}}--{{$style}} {{$class}}--{{$size}} ">
</{{$componentElement}}>
23 changes: 23 additions & 0 deletions src/Component/Divider/divider.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"slug": "divider",
"default": {
"componentElement": "div",
"style": "dashed",
"size": "md"
},
"description": {
"componentElement": "The tag to use for this component.",
"style": "Either dashed, solid or dotted.",
"size": "The length of the divider. Either sm, md or lg."
},
"view": "dropdown.blade.php",
"dependency": {
"sass": {
"components": [
"divider"
]
}
}
}


0 comments on commit 0b16a68

Please sign in to comment.