diff --git a/src/Components/Form/Check.php b/src/Components/Form/Check.php new file mode 100644 index 0000000..7692068 --- /dev/null +++ b/src/Components/Form/Check.php @@ -0,0 +1,25 @@ +framework = $framework ?? config('blade-components.css_framework', 'tailwind'); + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View + { + return view("blade-components::components.{$this->framework}.form.check"); + } +} diff --git a/src/Components/Form/Input.php b/src/Components/Form/Input.php index 908d279..f3f7879 100644 --- a/src/Components/Form/Input.php +++ b/src/Components/Form/Input.php @@ -12,7 +12,7 @@ class Input extends Component */ public function __construct(public ?string $framework = null) { - $this->framework = $framework ?? config('blade-components.css_framework', 'bootstrap'); + $this->framework = $framework ?? config('blade-components.css_framework', 'tailwind'); } /** diff --git a/src/Components/Form/MultiCheck.php b/src/Components/Form/MultiCheck.php new file mode 100644 index 0000000..2b9a790 --- /dev/null +++ b/src/Components/Form/MultiCheck.php @@ -0,0 +1,25 @@ +framework = $framework ?? config('blade-components.css_framework', 'tailwind'); + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View + { + return view("blade-components::components.{$this->framework}.form.multi-check"); + } +} diff --git a/src/Components/Form/Select.php b/src/Components/Form/Select.php new file mode 100644 index 0000000..1f1d799 --- /dev/null +++ b/src/Components/Form/Select.php @@ -0,0 +1,25 @@ +framework = $framework ?? config('blade-components.css_framework', 'tailwind'); + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View + { + return view("blade-components::components.{$this->framework}.form.select"); + } +} diff --git a/src/Components/Form/Textarea.php b/src/Components/Form/Textarea.php new file mode 100644 index 0000000..939e1c9 --- /dev/null +++ b/src/Components/Form/Textarea.php @@ -0,0 +1,25 @@ +framework = $framework ?? config('blade-components.css_framework', 'tailwind'); + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View + { + return view("blade-components::components.{$this->framework}.form.textarea"); + } +}