xtablo-source/docs/design-system/inputs.html
2026-05-10 10:37:47 +02:00

23 lines
2.5 KiB
HTML

<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Inputs</title>
<link rel="stylesheet" href="../../go-backend/static/tailwind.css">
<link rel="stylesheet" href="../../go-backend/static/styles.css">
</head>
<body>
<main class="catalog-page"><nav class="catalog-nav" aria-label="Catalog navigation"><a href="./index.html" class="catalog-home-link">Catalog</a><div class="catalog-nav-links"><a href="./tokens.html" class="catalog-nav-link">Tokens</a><a href="./buttons.html" class="catalog-nav-link">Buttons</a><a href="./badges.html" class="catalog-nav-link">Badges</a><a href="./icon-buttons.html" class="catalog-nav-link">Icon Buttons</a><a href="./inputs.html" class="catalog-nav-link is-active">Inputs</a><a href="./form-fields.html" class="catalog-nav-link">Form Fields</a><a href="./modals.html" class="catalog-nav-link">Modals</a><a href="./spacing.html" class="catalog-nav-link">Spacing</a><a href="./tables.html" class="catalog-nav-link">Tables</a><a href="./empty-states.html" class="catalog-nav-link">Empty States</a><a href="./cards.html" class="catalog-nav-link">Cards</a></div></nav><header class="catalog-page-header"><p class="catalog-eyebrow">Design System</p><h1>Inputs</h1><p>Shared single-line and multiline text controls.</p></header><div class="catalog-example-list"><section class="catalog-example"><div class="catalog-example-copy"><h2>Text input</h2><p>Single-line input for names, titles, and short labels.</p></div><div class="catalog-example-preview"><input id="name" type="text" name="name" value="Projet Atlas" placeholder="Nom du projet" class="ui-input"></div><pre class="catalog-example-snippet"><code>@ui.Input(ui.InputProps{
Name: &#34;name&#34;,
Value: &#34;Projet Atlas&#34;,
Placeholder: &#34;Nom du projet&#34;,
Type: &#34;text&#34;,
})</code></pre></section><section class="catalog-example"><div class="catalog-example-copy"><h2>Textarea</h2><p>Multiline field for longer project notes and descriptions.</p></div><div class="catalog-example-preview"><textarea id="description" name="description" placeholder="Description" rows="4" class="ui-textarea">Une description de projet plus détaillée.</textarea></div><pre class="catalog-example-snippet"><code>@ui.Textarea(ui.TextareaProps{
Name: &#34;description&#34;,
Value: &#34;Une description de projet plus détaillée.&#34;,
Placeholder: &#34;Description&#34;,
Rows: 4,
})</code></pre></section></div></main>
</body>
</html>