A next-generation tool to create blazing-fast documentation sites
API
created:12/30/2020
updated:12/30/2020
loc
5
comments
0

Text

@component-controls/core
3.14.6
import { TextControl } from '@component-controls/core';

Overview

A simple story that just returns the text parameter

Hello
Name
Description
Default
Controls
Enter text

a text control

text
Hello
Name
Description
Default
ComponentControlText(4 properties)
type
ControlTypes.TEXT
-
placeholder

placeholder for empty properties either undefined initial value or user clears the field

string
-
rows

number of rows for a TextArea field for longer text by default, only 1 row = means a Input field > 1 rows = an area field

number
-
escapeValue

allows to receive escaped string values to help prevent XSS attacks by default - false

boolean
-
ComponentControlBase(9 properties)

Commits

Date
Author
Commit Message
6/16/2020

atanasster

avatar of atanasster
chore: merge specification into core package
1 commits
file
imports
"../../controls"
ComponentControlText
"./types"
AsReactComponent

Stories

Hidden

Hidden controls in story

Hello

Placeholder

Placeholder text with empty value

Text Area

You can use a multi-lines text area by specifying

Default Value

Default value

Hello

Required

Required value

Hello