//! 表单控件组件 //! //! 提供登录、注册、评论等页面共享的输入框、按钮与提示框样式常量与组件。 use dioxus::prelude::*; /// 输入框基础 CSS 类,统一文本框、邮箱框、URL 框等样式。 pub const INPUT_CLASS: &str = "w-full px-4 py-2 border border-paper-border rounded-2xl bg-paper-entry text-paper-primary placeholder:text-paper-tertiary focus:outline-none focus:border-paper-accent focus:ring-1 focus:ring-paper-accent/30 transition-colors duration-200"; /// 主按钮 CSS 类,用于表单提交等主操作按钮。 pub const BUTTON_PRIMARY_CLASS: &str = "w-full py-2.5 px-4 bg-paper-accent text-white font-medium rounded-full hover:brightness-110 active:scale-[0.98] transition-all duration-200 cursor-pointer"; /// 下拉选择框组件(自定义 chevron,跨浏览器对齐一致)。 /// /// 原生 `