* indicates a required field.
Required Indicator
The Required Indicator component is used to indicate that a field is required.
* indicates a required field.
Example
Section titled “Example”// Import componentimport { 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>);<script setup lang="ts">// Import componentimport { RequiredIndicator } from '@fintech-sandpit/ui/vue';// Import styles (optional). Please note that RequiredIndicator is sharing the styles with the Field component.import '@fintech-sandpit/ui/style/components/field.css';</script>
<template> <p> <RequiredIndicator /> indicates a required field. </p></template>| Name | Type | Default | Description |
|---|---|---|---|
symbol | string | * | The symbol to use for the required indicator |
Customisation
Section titled “Customisation”See the useSetup hook for more information on how to customise the component.
See the useSetup composition function for more information on how to customise the component.