From 3be4648d4196ae851b071ccb04f3fe2e6c24beea Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Tue, 17 Oct 2017 14:54:42 -0400 Subject: [PATCH] Add some button examples --- docs/source/_partials/code-sample.blade.php | 2 +- docs/source/styles/buttons.blade.md | 162 ++++++++++++++------ 2 files changed, 116 insertions(+), 48 deletions(-) diff --git a/docs/source/_partials/code-sample.blade.php b/docs/source/_partials/code-sample.blade.php index 9fee1d401..f732b2eb3 100644 --- a/docs/source/_partials/code-sample.blade.php +++ b/docs/source/_partials/code-sample.blade.php @@ -1,5 +1,5 @@
-
+
{{ $slot }}
diff --git a/docs/source/styles/buttons.blade.md b/docs/source/styles/buttons.blade.md index 6c5eb1887..b757323e4 100644 --- a/docs/source/styles/buttons.blade.md +++ b/docs/source/styles/buttons.blade.md @@ -5,59 +5,127 @@ title: "Buttons" # Buttons - +We don't ship any default button components because every app has it's own visual style and Tailwind tries to be as unopinionated as possible about how your project should look. -Document how to create buttons of various styles, like solid rounded buttons, outline buttons, pill buttons, etc. +That said, buttons are easy to build by combining utility classes. -### Solid +Here's a bunch of examples: -
- + +@slot('code') + + + + + + + +@endslot +@endcomponent + +--- + +### Pill + +@component('_partials.code-sample', ['lang' => 'html']) + +@endcomponent + +--- + +### Outline + +@component('_partials.code-sample', ['lang' => 'html']) + +@endcomponent + +--- + +### Bordered + +@component('_partials.code-sample', ['lang' => 'html']) + +@endcomponent + +--- + +### Disabled + +@component('_partials.code-sample', ['lang' => 'html']) + +@endcomponent + +--- + +### 3D + +@component('_partials.code-sample', ['lang' => 'html']) + +@endcomponent + +--- + +### Elevated + +@component('_partials.code-sample', ['lang' => 'html']) + +@endcomponent + +--- + +### Button Groups + +@component('_partials.code-sample', ['lang' => 'html']) +
+ - - -
-
- - -
+@endcomponent -@foreach($page->colors as $color) -
- - -
-@endforeach +--- -

Outline

+### w/Icon + +@component('_partials.code-sample', ['lang' => 'html']) + +@endcomponent -@foreach($page->colors as $color) -
- - -
-@endforeach