This commit is contained in:
@@ -127,7 +127,7 @@ export const Text: Story = {
|
||||
label: 'Title',
|
||||
placeholder: 'Write a title',
|
||||
},
|
||||
render: (args) => {
|
||||
render: function TextRender(args) {
|
||||
const [value, setValue] = useState('Storybook integration');
|
||||
return (
|
||||
<InputField
|
||||
@@ -148,7 +148,7 @@ export const PasswordWithToggle: Story = {
|
||||
label: 'Password',
|
||||
placeholder: 'Type a strong password',
|
||||
},
|
||||
render: (args) => {
|
||||
render: function PasswordWithToggleRender(args) {
|
||||
const [value, setValue] = useState('pa55word');
|
||||
return (
|
||||
<InputField
|
||||
@@ -171,7 +171,7 @@ export const InlineWithIcon: Story = {
|
||||
size: 'sm',
|
||||
rightIcon: <MagnifyingGlassIcon className="h-4 w-4 ui-body-secondary" />,
|
||||
},
|
||||
render: (args) => {
|
||||
render: function InlineWithIconRender(args) {
|
||||
const [value, setValue] = useState('posts');
|
||||
return (
|
||||
<InputField
|
||||
@@ -186,7 +186,8 @@ export const InlineWithIcon: Story = {
|
||||
},
|
||||
};
|
||||
|
||||
export const Error: Story = {
|
||||
export const ErrorState: Story = {
|
||||
name: 'Error',
|
||||
args: {
|
||||
type: 'email',
|
||||
label: 'Email',
|
||||
@@ -210,7 +211,7 @@ export const SizeMatrix: Story = {
|
||||
label: 'Name',
|
||||
placeholder: 'Enter value',
|
||||
},
|
||||
render: (args) => {
|
||||
render: function SizeMatrixRender(args) {
|
||||
const [value, setValue] = useState('Beatrice');
|
||||
return (
|
||||
<div className="grid grid-cols-1 gap-3">
|
||||
|
||||
Reference in New Issue
Block a user