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

Options

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

Combined Options

Showcase

ControlTypes.OPTIONS
controls of types
radio
,
inline-radio
,
select
,
multi-select
,
check
and
inline-check
.

Weekday: Tuesday

Weekend: Saturday

Month: January

Fruit:

  • apple

Vegetables:

  • carrot

Dairy:

  • milk
Name
Description
Default
Controls
Radio
options
Tuesday
Inline Radio
options
Saturday
Select
options
January
Multi Select
options
[
  "apple"
]
Check
options
[
  "carrot"
]
Inline Check
options
[
  "milk"
]
Name
Description
Default
ComponentControlOptions(3 properties)
type
ControlTypes.OPTIONS
-
options
OptionsListType<unknown>
-
display

how to render selecting the options: default is 'select'

selectmulti-selectradioinline-radiocheckinline-check
-
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"
ComponentControlOptions
"./types"
AsReactComponent

Stories

Overview

Story with options of different data types

{ "value": 1 }

Radio Enum

ControlTypes.OPTIONS
display:
radio
.

Monday

Complex Select

ControlTypes.OPTIONS
control type where the options can have different data-types.

the type of "string" = string