• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBoxupdated
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

ColorGradientProps

Represents the props of the KendoReact ColorGradient component.

NameTypeDefaultDescription

ariaDescribedBy?

string

Identifies the element(s) which will describe the component, similar to HTML aria-describedby attribute. For example these elements could contain error or hint message.

ariaLabel?

string

Represent the label of the component.

ariaLabelHSV?

string

Represents the label of the hsv drag handle component used inside the ColorGradient.

ariaLabelledBy?

string

Identifies the element(s) which will label the component.

ariaValueText?

string

Represents the text rendered inside the hsv drag handle.

backgroundColor?

string

Enables the color contrast tool. Sets the background color that will be compared to the selected value. The tool will calculate the contrast ratio between two colors. Currently, only the RGBA format is supported.

className?

string

Sets additional classes to the ColorGradient.

defaultValue?

string

The default value of the ColorGradient.

disabled?

boolean

Determines whether the ColorGradient is disabled (more information and example).

class App extends React.Component {
   render() {
      return (
          <ColorGradient disabled={true} />
      );
   }
}
ReactDOM.render(<App />, document.querySelector('my-app'));

format?

"hex" | "rgba" | "rgb"

'rgb'

Sets the default input format in the gradient input editor.

id?

string

Specifies the id of the component.

onChange?

(event: ColorGradientChangeEvent) => void

Determines the event handler that will be fired when the user edits the value.

onFocus?

(event: any) => void

Represents the focus event.

opacity?

boolean

Determines whether the alpha slider and the alpha input will be displayed. Defaults to true.

style?

React.CSSProperties

The styles that are applied to the ColorGradient.

tabIndex?

number

Sets the tabIndex property of the ColorGradient.

value?

string

The value of the ColorGradient.