Playground

This component's contract doesn't list typed props, so the playground shows its documented example.

Documented example VizOpacityControls : choose 0.4, {"opacity":0.4}.

The render follows the page's theme switch: light, dark or high contrast. Both frameworks render the same example.

The real VizOpacityControls, live
React
Mark opacity
Vue
Mark opacity

Events it emits: change. Use either render above, and each event shows here with the framework that sent it.

    Code

    The documented example. HTML is the markup the React component renders for it, which @oods/component-styles styles.

    import { VizOpacityControls } from '@oods/components-react';
    import '@oods/component-styles/css';
    
    const value = {
      "opacity": 0.8
    };
    
    export function Example() {
      return (
        <VizOpacityControls
          value={value}
        />
      );
    }

    Props, slots and events

    Contract version 1.1.0. Types are from the React declarations in @oods/components-react.

    Props
    PropTypeRequiredDocumented example
    title string | undefined no
    value VizIntentFragment | undefined no {"opacity":0.8}
    channel "x" | "y" | undefined no
    disabled boolean | undefined no

    Slots

    none

    Events

    change

    States

    bound, editing, invalid, disabled

    Accessibility

    Role
    combobox
    How it gets its name
    label on select[name="opacity"]

    Keyboard

    Keyboard
    KeyWhat it does
    TabFocus the labelled chart input

    Obligations in the contract

    • Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment.

    Mark opacity: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component.

    Tokens

    The token roles this component reads.

    • input.background
    • input.border
    • input.text
    • input.focus
    • field.message

    Readiness

    The evidence recorded for this component, with its label.

    react-and-vue: catalog_list gives this label when the React and Vue components have complete readiness evidence, but the sweep's generated apps don't use the component in both.

    Readiness evidence
    EvidenceReactVue
    stateimplemented-evidence-completeimplemented-evidence-complete
    versioned contractpassedpassed
    target implementationpassedpassed
    package exportpassedpassed
    public declarationpassedpassed
    dependency closurepassedpassed
    framework scenariopassedpassed
    accessibilityverifiedverified
    interactionverifiedverified
    visual themesverifiedverified

    Use your own

    You can replace this component with your own React or Vue component. Map it, and generated code imports yours at the exact version you name. A contract report, run in a real browser, lists what your component met, what it didn't, and what wasn't checked.

    The component_map call, with the parts in angle brackets yours to fill:

    {
      "action": "create",
      "apply": true,
      "externalSystem": "<your design system>",
      "externalComponent": "<YourVizOpacityControls>",
      "oodsTraits": [
        "EncodingOpacity"
      ],
      "substitution": {
        "component": "VizOpacityControls",
        "react": {
          "package": "<your-package>/react",
          "version": "<exact version>",
          "export": "<YourVizOpacityControls>"
        },
        "vue": {
          "package": "<your-package>/vue",
          "version": "<exact version>",
          "export": "<YourVizOpacityControls>"
        }
      }
    }

    How this page was made

    Generated at build from the published data, each source with the hash of what was read. The page's manifest.

    • Contract: @oods/component-contracts@0.10.1 componentContracts.VizOpacityControls sha256:937c09f688e8…
    • Documented example: @oods/component-contracts@0.10.1 sharedScenarios VizOpacityControls sha256:afa868282838…
    • Catalog entry (catalog_list): generated/0.10.1/system/catalog.json VizOpacityControls sha256:2dba7924762d…
    • React readiness: @oods/components-react@0.10.1 readiness VizOpacityControls sha256:bcdd7ce5559c…
    • Vue readiness: @oods/components-vue@0.10.1 readiness VizOpacityControls sha256:966e1582a518…
    • Prop types: generated/0.10.1/components/prop-types.json VizOpacityControls sha256:3200947d11d0…