soda-material
Version:
A component library that may follow [material design 3](https://m3.material.io/components) (a.k.a. material you)
31 lines (30 loc) • 1.23 kB
TypeScript
/// <reference types="react" />
import type { StoryObj } from '@storybook/react';
declare const meta: {
title: string;
component: import("react").ForwardRefExoticComponent<{
leadingIcon?: import("react").ReactNode;
trailingIcon?: import("react").ReactNode;
labelText?: string | undefined;
supportingText?: string | undefined;
type?: "number" | "text" | undefined;
value?: string | number | undefined;
onChange?: ((text: string | number) => void) | undefined;
readonly?: boolean | undefined;
disabled?: boolean | undefined;
error?: boolean | undefined;
sd?: "filled" | "outlined" | undefined;
} & Omit<import("react").HTMLProps<HTMLElement>, "ref" | "disabled" | "type" | "value" | "onChange" | "trailingIcon" | "sd" | "error" | "leadingIcon" | "supportingText" | "labelText" | "readonly"> & import("react").RefAttributes<HTMLInputElement>>;
tags: string[];
parameters: {
layout: string;
};
args: {
labelText: string;
};
};
export default meta;
type Story = StoryObj<typeof meta>;
export declare const Filled: Story;
export declare const Outlined: Story;
export declare const Error: Story;