Wrapper

The Dropdown component wrapper

This is a compound component.

API

This component extends the native div tag props. This means this component can receive the native html div attributes, for example, the className attribute (which is why it's not included in the table).

Props
Type
Required

children

ReactNode

isDisabled

boolean

hasError

boolean

isReadOnly

boolean

children

The children in this case, because it is a compound component, should be the ones provided by this design system.

hasError

The hasError prop sets the component state to an error state, changing its colors by the ones defined in the tokens.

isDisabled

Disable the component by changing its state.

isReadOnly

Changes the component styles and becomes to a read-only state.

Last updated