Skip to content

Commit

Permalink
Chore: Adding paper documentation (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin authored Nov 6, 2023
1 parent 2615f9e commit 912daf6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
11 changes: 11 additions & 0 deletions views/pages/components/atoms/paper.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@extends('layout.containers.doc')

@section('doc-content')
@markdown
# Paper
Wraps content inside a container
@endmarkdown

@doc(['slug' => 'paper'])
@enddoc
@stop
20 changes: 20 additions & 0 deletions views/pages/components/usage/paper/paper.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@paper([
'classList' => ['u-margin__bottom--4']
])
Content wrapped with the paper component
@endpaper

@paper([
'classList' => ['u-margin__bottom--4'],
'padding' => '4'
])
Content wrapped with the paper component. Padding parameter set to "4"
@endpaper


@paper([
'classList' => ['u-margin__bottom--4'],
'transparent' => true
])
Content wrapped with the paper component. Transparent parameter set to "true" removing shadow and background.
@endpaper
7 changes: 7 additions & 0 deletions views/pages/components/usage/paper/paper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"paper": {
"heading": "Paper",
"subHeading": "",
"text": ""
}
}

0 comments on commit 912daf6

Please sign in to comment.