Skip to content

Required Indicator

The Required Indicator component is used to indicate that a field is required.

* indicates a required field.

// Import component
import { RequiredIndicator } from '@fintech-sandpit/ui/react';
// Import styles (optional). Please note that RequiredIndicator is sharing the styles with the Field component.
import '@fintech-sandpit/ui/style/components/field.css';
return (
<p>
<RequiredIndicator /> indicates a required field.
</p>
);
NameTypeDefaultDescription
symbolstring*The symbol to use for the required indicator

See the useSetup hook for more information on how to customise the component.