feat: Update InputForm, Input, and auth page

- Perbaiki page login ke halaman utama backoffice
- Perbaiki component Input dan InputForm
This commit is contained in:
Hafid Nur
2025-03-27 07:19:46 +07:00
parent 631684cb05
commit 542469bc67
11 changed files with 138 additions and 272 deletions
+10 -10
View File
@@ -4,16 +4,6 @@ import { Input } from './input';
const meta: Meta<typeof Input> = {
title: 'Components/Input',
component: Input,
argTypes: {
type: {
control: 'select',
options: ['text', 'email'],
},
size: {
control: 'select',
options: ['sm', 'md', 'lg'],
},
},
tags: ['autodocs'],
} satisfies Meta<typeof Input>;
@@ -23,6 +13,7 @@ type Story = StoryObj<typeof Input>;
export const Large: Story = {
args: {
size: 'lg',
type: 'text',
placeholder: 'Placeholder',
},
};
@@ -30,6 +21,7 @@ export const Large: Story = {
export const Medium: Story = {
args: {
size: 'md',
type: 'text',
placeholder: 'Placeholder',
},
};
@@ -37,6 +29,7 @@ export const Medium: Story = {
export const Small: Story = {
args: {
size: 'sm',
type: 'text',
placeholder: 'Placeholder',
},
};
@@ -55,6 +48,13 @@ export const EmailInput: Story = {
},
};
export const PasswordInput: Story = {
args: {
size: 'md',
type: 'password',
},
};
export const Disabled: Story = {
args: {
size: 'md',