Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apps/docs/content/docs/develop/(components)/input-otp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { InputOTPControlledExample } from "./input-otp.client";
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

<InputOTP maxLength={4}>
<InputOTPSlot index={0} />
Expand All @@ -45,7 +45,7 @@ import { InputOTPControlledExample } from "./input-otp.client";
## Usage

```ts copy title="Import"
import { InputOTP, InputOTPSlot } from "@/components/myds";
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp";
```

```tsx copy title="Anatomy"
Expand Down Expand Up @@ -74,7 +74,7 @@ Set the `invalid` prop to true to mark the input as invalid.
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

<InputOTP maxLength={4} invalid>
<InputOTPSlot index={0} />
Expand Down Expand Up @@ -102,7 +102,7 @@ Disable the input by setting the `disabled` prop to true.
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

<InputOTP maxLength={4} disabled defaultValue="AB12">
<InputOTPSlot index={0} />
Expand All @@ -125,7 +125,7 @@ The input can be controlled by setting the `value` and `onChange` props. In the
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

const [value, setValue] = useState("");

Expand Down Expand Up @@ -161,7 +161,7 @@ Pass a regex to the `pattern` prop to only accept values of a certain pattern. F
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

<InputOTP maxLength={4} pattern="^[0-9]{0,4}$">
<InputOTPSlot index={0} />
Expand Down
12 changes: 6 additions & 6 deletions apps/docs/content/docs/develop/(components)/input-otp.ms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { InputOTPControlledExample } from "./input-otp.client";
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

<InputOTP maxLength={4}>
<InputOTPSlot index={0} />
Expand All @@ -45,7 +45,7 @@ import { InputOTPControlledExample } from "./input-otp.client";
## Usage

```ts copy title="Import"
import { InputOTP, InputOTPSlot } from "@/components/myds";
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp";
```

```tsx copy title="Anatomi"
Expand Down Expand Up @@ -74,7 +74,7 @@ Tetapkan prop `invalid` kepada true untuk menandakan input sebagai tidak sah.
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

<InputOTP maxLength={4} invalid>
<InputOTPSlot index={0} />
Expand Down Expand Up @@ -102,7 +102,7 @@ Nyahaktifkan input dengan menetapkan prop `disabled` kepada true.
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

<InputOTP maxLength={4} disabled defaultValue="AB12">
<InputOTPSlot index={0} />
Expand All @@ -125,7 +125,7 @@ Input boleh dikawal dengan menetapkan props `value` dan `onChange`. Dalam contoh
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

const [value, setValue] = useState("");

Expand Down Expand Up @@ -161,7 +161,7 @@ Hantar regex kepada prop `pattern` untuk hanya menerima nilai corak tertentu. Se
</Tab>
<Tab value="Code">
```tsx
import { InputOTP, InputOTPSlot } from "@/components/myds"
import { InputOTP, InputOTPSlot } from "@govtechmy/myds-react/input-otp"

<InputOTP maxLength={4} pattern="^[0-9]{0,4}$">
<InputOTPSlot index={0} />
Expand Down
10 changes: 5 additions & 5 deletions apps/docs/content/docs/develop/(components)/tabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { Tab, Tabs as FumaTabs } from "fumadocs-ui/components/tabs";
Tabs,
TabsContent,
TabsCounter,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";

<Tabs
defaultValue="1"
Expand Down Expand Up @@ -161,7 +161,7 @@ Use the `variant` prop to change the tabs style. Currently, there are 3 designs
Tabs,
TabsContent,
TabsCounter,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";

<Tabs
defaultValue="1"
Expand Down Expand Up @@ -361,7 +361,7 @@ Use the `size` prop to change the size of the tabs. Examples of use cases for bo
Tabs,
TabsContent,
TabsCounter,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";

<Tabs
defaultValue="1"
Expand Down Expand Up @@ -663,7 +663,7 @@ Leading icons serve as visual indicators placed at the start of tab items, enhan
Tabs,
TabsContent,
TabsCounter,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";

<TabsList>
<TabsTrigger value="1">
Expand Down Expand Up @@ -761,7 +761,7 @@ Counters appear as numerical indicators after tab labels, providing at-a-glance
Tabs,
TabsContent,
TabsCounter,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";

<Tabs
defaultValue="1"
Expand Down
10 changes: 5 additions & 5 deletions apps/docs/content/docs/develop/(components)/tabs.ms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { Tab, Tabs as FumaTabs } from "fumadocs-ui/components/tabs";
Tabs,
TabsContent,
TabsCounter,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";

<Tabs
defaultValue="1"
Expand Down Expand Up @@ -161,7 +161,7 @@ Gunakan prop `variant` untuk menukar gaya tab. Pada masa ini, terdapat 3 reka be
Tabs,
TabsContent,
TabsCounter,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";

<Tabs
defaultValue="1"
Expand Down Expand Up @@ -343,7 +343,7 @@ Gunakan prop `size` untuk menukar saiz tab. Contoh penggunaan untuk kedua-dua je
Tabs,
TabsContent,
TabsCounter,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";

<Tabs
defaultValue="1"
Expand Down Expand Up @@ -597,7 +597,7 @@ Ikon ("leading icon") berfungsi sebagai penunjuk visual yang diletakkan di tab,
import {
Tabs,
TabsContent,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";
import {
ArrowForwardIcon
} from "@govtechmy/myds-react/icon";
Expand Down Expand Up @@ -699,7 +699,7 @@ Pembilang ("Counter") muncul sebagai penunjuk berangka selepas label tab, member
Tabs,
TabsContent,
TabsCounter,
} from "@/components/myds";
} from "@govtechmy/myds-react/tabs";

<Tabs
defaultValue="1"
Expand Down