Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Function EditorDimension

    • Edits a number with an optional unit through a slider, a number field, and a unit select. Ranges come from the property's syntax when it has them, such as font-weight's 1 to 1000; otherwise the slider spans a span that suits the unit and grows to include the current value.

      Parameters

      • props: Omit<EditorValueProps, "property" | "types"> & {
            compact?: boolean;
            kind: DimensionKind;
            label?: string;
        }

        Value editing props.

        • Optionalcompact?: boolean

          Leaves out the slider, for fields that sit side by side, such as a shadow's offsets.

        • kind: DimensionKind

          Kind being edited; lengths and percentages offer each other's units when the property takes both.

        • Optionallabel?: string

          Names the fields for assistive technology when several editors share a panel.

      Returns Element