mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 02:59: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";
|
||||
|
||||
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 (
|
||||
<>
|
||||
{type === "textarea" ? (
|
||||
<textarea
|
||||
className="field big"
|
||||
className={className}
|
||||
name={name}
|
||||
placeholder={placeholder}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user