render (h, { data, injections, ...rest }) {
    const colorMode = injections.$chakraColorMode()
    const colors = { light: 'red.500', dark: 'red.300' }
    const color = colors[colorMode]

    return h(CBox, {
      ...rest,
      attrs: {
        as: 'span',
        ml: 1,
        color,
        'aria-hidden': true,
        ...data.attrs,
        'data-chakra-component': 'CRequiredIndicator'
      }
    }, '*')
  }
CRequiredIndicator component

Indicator shown if `isRequired` is received from context.

@extends CBox
@see Docs https://vue.chakra-ui.com/formcontrol