Skip to content

Input

A native, styled input element.


---
import { Input } from 'fulldev-ui'
---
<Input name="name" placeholder="Name" />

Props

size

Type: size?: 'sm' | 'md' | 'lg'

Sets the size for this component and all its children.

---
import { Input } from 'fulldev-ui'
---
<Input size="sm" name="name" placeholder="name" />
<Input size="md" name="name" placeholder="name" />
<Input size="lg" name="name" placeholder="name" />

density

Type: density?: 'base' | 'compact' | string

Changes the underlying values used by the size prop, for this component and all its children.

For example, we set compact on a card and can now size this and all children automatically based on the size on the wrapping block/section.

Choose a predefined density, or a custom value defined like explained in the theming guide.

---
import { Input } from 'fulldev-ui'
---
<Input density="compact" size="sm" name="name" placeholder="name" />
<Input density="compact" size="md" name="name" placeholder="name" />
<Input density="compact" size="lg" name="name" placeholder="name" />

theme

Type: theme?: 'light' | 'dark' | string

Changes the colors for this component and all its children.

Choose a predefined theme, or a custom value defined like explained in the theming guide.

HTML Attributes

All regular HTML attributes for the input element are accepted as props too.