/
dimamir
/
ory-kit
Обзор
Документация
Войти
/
dimamir
/
ory-kit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
development
authentication/src/lib/components/ory/internal/input/FlowInputEmail.svelte
33 строки
972 B
Markus Thielker
ORY-49: add documentation to internal components
29 дек 2023, 02:51
29 дек 2023, 02:51
b5283bb
Код
Авторство
О чём код?
<script lang="ts"> import { fromNode, t } from "$lib/i18n"; import Messages from "$lib/components/ory/Messages.svelte"; import type { UiNode, UiNodeInputAttributes } from "@ory/client"; /** the node to render */ export let node: UiNode; const attributes = node.attributes as UiNodeInputAttributes; </script> <!-- @component # Do NOT use this internal component outside of the flow component tree! This component is used by the flow component to render an email input. --> <fieldset> <label> <span>{$t(fromNode(node), node.meta.label?.context)}</span> <input class="text-input" disabled={attributes.disabled} name={attributes.name} placeholder={$t(fromNode(node), node.meta.label?.context)} required={attributes.required} type="email" value={attributes.value ?? ""} /> </label> </fieldset> <Messages messages={node.messages} />