Skip to content

Commit

Permalink
Extend Textarea with required prop
Browse files Browse the repository at this point in the history
  • Loading branch information
agjs committed Apr 28, 2024
1 parent f4f7a7d commit 125b6ab
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@programmer_network/yail",
"version": "1.0.170",
"version": "1.0.171",
"description": "Programmer Network's official UI library for React",
"author": "Aleksandar Grbic - (https://programmer.network)",
"publishConfig": {
Expand Down
15 changes: 14 additions & 1 deletion src/Components/Divider/__snapshots__/Divider.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ exports[`Divider component > renders correctly - snapshot test 1`] = `
<div
class="yl-mx-auto yl-flex yl-justify-center yl-gap-1"
data-testid="divider"
/>
>
<div
class="yl-block yl-h-[2px] yl-w-28 yl-bg-primary-text-color"
data-testid="divider-child-0"
/>
<div
class="yl-block yl-h-[2px] yl-w-28 yl-bg-primary-text-color"
data-testid="divider-child-1"
/>
<div
class="yl-block yl-h-[2px] yl-w-28 yl-bg-primary-text-color"
data-testid="divider-child-2"
/>
</div>
</DocumentFragment>
`;
3 changes: 2 additions & 1 deletion src/Components/Inputs/Textarea/Textarea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const Default: Story = {
name: "username",
label: "Username",
value: "John Doe",
onChange: (e: Record<string, string>) => console.log(e)
onChange: (e: Record<string, string>) => console.log(e),
required: true
}
};
1 change: 1 addition & 0 deletions src/Components/Inputs/Textarea/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export interface ITextareaProps {
inputWrapperClassName?: string;
max?: number;
min?: number;
required?: boolean;
}

0 comments on commit 125b6ab

Please sign in to comment.