mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:29:45 +00:00
Доработка field
This commit is contained in:
1 parent
9e1c2c385a
commit
bec4d41ea9
1 file changed
+4
-2
@@ -1,13 +1,15 @@
|
|||||||
import "./Field.styles.scss";
|
import "./Field.styles.scss";
|
||||||
|
|
||||||
function Field({ type, name, placeholder, icon }) {
|
function Field({ type, name, placeholder, icon }) {
|
||||||
const className = type === "submit" ? "submit btn" : "field";
|
const className = type === "submit" ? "submit btn"
|
||||||
|
: type === "textarea" ? "field big"
|
||||||
|
: "field";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{type === "textarea" ? (
|
{type === "textarea" ? (
|
||||||
<textarea
|
<textarea
|
||||||
className="field big"
|
className={className}
|
||||||
name={name}
|
name={name}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in new issue
Block a user