跳转到内容

公共 UI 组件与主题桥:SearchIcon – TextInput

本页由当前 SDK 声明自动生成。 导入入口:@woohaa3/ui。

返回接口索引

SearchIcon · SegmentedControl · SegmentedControlProps · SegmentedOption · SelectInput · SendIcon · ServiceLogo · SettingsFeedback · SettingsIcon · SettingsSection · SnippetLibraryIcon · SparklesIcon · StarIcon · StorageIcon · SunIcon · SwapColorsIcon · Switch · SwitchProps · TabItem · Tabs · TabsProps · TaskListIcon · TextArea · TextInput

SearchIcon

export const SearchIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

SegmentedControl

export function SegmentedControl(props: SegmentedControlProps): React.JSX.Element;

关联类型:SegmentedControlProps

SegmentedControlProps

export type SegmentedControlProps = (CommonProps & {
type?: "single";
value: string;
onValueChange: (value: string) => void;
}) | (CommonProps & {
type: "multiple";
value: readonly string[];
onValueChange: (value: string[]) => void;
});

关联类型:CommonProps

成员说明:

  • label:组可访问名。
  • optionClassName:每个选项追加 class 的钩子(迁移期保留业务 class)。
  • dataAttributes:透传到 radiogroup 根的数据属性(迁移期保留 data-* 契约)。

SegmentedOption

export type SegmentedOption = {
value: string;
label: ReactNode;
icon?: ReactNode;
disabled?: boolean;
ariaLabel?: string;
title?: string;
};

成员说明:

  • icon:可选前缀图标(默认 aria-hidden)。
  • ariaLabel:可访问名(label 为纯图标时必填)。
  • title:触发元素的 title(迁移期保留的可见提示)。

SelectInput

export function SelectInput({ label, value, onValueChange, options, disabled, placeholder, className, }: { label: string; value: string; onValueChange: (value: string) => void; options: readonly ListboxOption[]; disabled?: boolean; placeholder?: string; className?: string; }): React.JSX.Element;

关联类型:ListboxOption

SendIcon

发送/执行(Lucide Send;产品专有实心纸飞机见 CUSTOM_ICON_EXCEPTIONS)。

export const SendIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

Known product/service identity only; generic API protocols have no brand mark.

export function ServiceLogo({ service, size }: { service: string; size?: number; }): React.JSX.Element | null;

SettingsFeedback

export function SettingsFeedback({ tone, children, }: { tone?: "neutral" | "success" | "danger" | "warning"; children: ReactNode; }): React.JSX.Element;

SettingsIcon

export const SettingsIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

SettingsSection

export function SettingsSection({ title, description, action, children, }: { title: string; description?: string; action?: ReactNode; children: ReactNode; }): React.JSX.Element;

SnippetLibraryIcon

export const SnippetLibraryIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

SparklesIcon

export const SparklesIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

StarIcon

export const StarIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

StorageIcon

存储后端。

export const StorageIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

SunIcon

export const SunIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

SwapColorsIcon

export const SwapColorsIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

Switch

export const Switch: React.ForwardRefExoticComponent<Omit<Omit<SwitchPrimitive.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref">, "asChild"> & { testId?: string; } & React.RefAttributes<HTMLButtonElement>>;

关联类型:SwitchProps

SwitchProps

export type SwitchProps = Omit<ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, "asChild"> & {
testId?: string;
};

成员说明:

  • testId:稳定测试/定位标识。

TabItem

export type TabItem = {
value: string;
label: ReactNode;
disabled?: boolean;
icon?: ReactNode;
};

Tabs

export function Tabs(props: TabsProps): React.JSX.Element;

关联类型:TabsProps

TabsProps

export type TabsProps = {
value: string;
onValueChange: (value: string) => void;
items: readonly TabItem[];
panels: Record<string, ReactNode>;
className?: string;
label?: string;
dir?: "ltr" | "rtl";
};

关联类型:TabItem

成员说明:

  • panels:各 value 对应的面板内容(按 value 取用)。
  • label:列表可访问名。
  • dir:键盘方向(默认 ltr)。

TaskListIcon

任务编排。

export const TaskListIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };

关联类型:UiIconProps

TextArea

export const TextArea: React.ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>;

TextInput

export const TextInput: React.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;