AuthLayout 登录页布局
登录、注册、找回密码这类页面的框架:品牌、居中卡片、网格背景、页脚和右上角工具条。
LLinasan
登录
使用账号密码登录管理后台
或
AuthToolbar 是右上角的主题色、语言、深色模式按钮;BackLink 是卡片上方的返回链接;第三方登录图标在 auth/brand-icons(GoogleIcon、GitHubIcon)。
安装
pnpm dlx shadcn@latest add https://docs.linasan.cn/r/auth-layout.json第一次装本站的组件前先在项目里执行一次 shadcn init,详见 安装。
用法
import { AuthLayout, AuthTitle, OrDivider } from '@/components/auth/auth-layout';
<AuthLayout brand="Linasan" toolbar={<AuthToolbar … />}>
<AuthTitle title="登录" />
<LoginForm />
</AuthLayout>属性
属性
类型