Tasks completed to update Storybook and Typescript versions. Please see phase-1-summary.md for details

This commit is contained in:
Richard Osborne
2025-12-08 16:19:56 +01:00
parent ef1ffdd593
commit e927df760f
117 changed files with 8853 additions and 4913 deletions

View File

@@ -1,16 +1,19 @@
import React, { useState } from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import type { Meta, StoryObj } from '@storybook/react';
import { TextInput } from '@noodl-core-ui/components/inputs/TextInput';
import { useAutofocusInput } from '@noodl-core-ui/hooks/useAutofocusInput';
export default {
const meta: Meta<typeof TextInput> = {
title: 'Hooks/useAutofocusInput',
component: TextInput,
argTypes: {}
} as ComponentMeta<typeof TextInput>;
};
export default meta;
type Story = StoryObj<typeof meta>;
const Template: ComponentStory<typeof TextInput> = () => {
const Template: Story = () => {
const setRef = useAutofocusInput();
const [secondInputState, setSecondInputState] = useState('Focus me manually');
@@ -22,5 +25,6 @@ const Template: ComponentStory<typeof TextInput> = () => {
);
};
export const Common = Template.bind({});
Common.args = {};
export const Common: Story = {
args: {},
};