<Control> Component
<Control> is an interactive simple box layout component with built-in variants, states, and interaction states: focus feedback and interactive feedback.
<Control> Component<Control> is an interactive simple box layout component with built-in variants, states, and interaction states: focus feedback and interactive feedback.
<Control> ComponentThere are 2 ways to install <Control> component into your react app project:
The alternative appearances of the <Control> layout without changing the <Control>'s functionality.
size PropertyDefines the alternative size of the <Control>.
The possible values are:
undefined'sm''md''lg'Here the preview:
theme PropertyDefines the contextual theme of the <Control>.
The possible values are:
undefined'primary''secondary''success''info''warning''danger''light''dark'Here the preview:
gradient PropertyActivates a 3D mode of the <Control>.
The possible values are:
undefined'inherit'truefalseHere the preview:
outlined PropertyActivates an outlined mode (background-less, contrast foreground, and contrast border) of the <Control>.
The possible values are:
undefined'inherit'truefalseHere the preview:
mild PropertyActivates a mild mode (mild background, contrast foreground, and contrast border) of the <Control>.
The possible values are:
undefined'inherit'truefalseHere the preview:
nude PropertyActivates an nude mode (background-less, padding-less, and border-less) of the <Control>.
The possible values are:
undefinedtruefalseHere the preview:
The conditions of the <Control> behavior or functionality.
enabled PropertyDefines the enabled/disabled state of the <Control>.
The possible values are:
undefinedtruefalseHere the preview:
inheritEnabled PropertyInfluences the <Control>'s disabled state by <ancestor enabled={false}>.
The possible values are:
undefinedtruefalseHere the preview:
active PropertyDefines the current active state of the <Control>.
The possible values are:
undefinedtruefalseHere the preview:
inheritActive PropertyInfluences the <Control>'s active state by <ancestor active={true}>.
The possible values are:
undefinedtruefalseHere the preview:
focused PropertyShows the focus indicator of the <Control>.
The possible values are:
undefinedtruefalseHere the preview:
arrived PropertyShows the arrive indicator (being touched but not clicked) of the <Control>.
It's similar to :is(:hover, :focus-visible) in CSS, but we toggle our :hover by our logic way (controllable and/or uncontrollable). In the future, we may change our algorithm to determine how the control will interact with the user.
The possible values are:
undefinedtruefalseHere the preview:
Because <Control> is made from <Indicator>, so all properties from <Indicator> are inherited.
There are several variables of <Control> you can customize. Changing the variables affects all <Control> instance and other components that depend on <Control>.
Here the exposed variables:
The example of accessing, modifying, & adding variables: