Components / financial
BillingIntervalSelector
Selects the interval for a recurring charge.
Generated from @oods/foundry 0.19.0
- Categories
- financial
- Contexts
- form
- Readiness
proven-in-generated-apps
Playground
This component's contract doesn't list typed props, so the playground shows its documented example.
Documented example billing-interval-subscription : ArrowDown from monthly, yearly selected and emitted.
The render follows the page's theme switch: light, dark or high contrast. Both frameworks render the same example.
Events it emits: change. Use either render above, and each event shows here with the framework that sent it.
Code
The documented example. HTML is the markup the React component renders for it, which @oods/component-styles styles.
import { BillingIntervalSelector } from '@oods/components-react';
import '@oods/component-styles/css';
const intervals = [
"monthly",
"yearly"
];
export function Example() {
return (
<BillingIntervalSelector
interval="monthly"
intervals={intervals}
label="Billing interval"
/>
);
}Props, slots and events
Contract version 1.1.0. Types are from the React declarations in @oods/components-react.
| Prop | Type | Required | Documented example |
|---|---|---|---|
help | string | undefined | no | |
interval | string | undefined | no | monthly |
intervals | readonly string[] | undefined | no | ["monthly","yearly"] |
label | string | undefined | no | Billing interval |
name | string | undefined | no | |
disabled | boolean | undefined | no |
Slots
none
Events
change
States
editing, invalid
Accessibility
- Role
combobox- How it gets its name
labelonselect
Keyboard
| Key | What it does |
|---|---|
| Tab | Move focus to the named native control |
Obligations in the contract
- A label names the native select
- Native keyboard navigation selects an interval
- An invalid value is visible with an associated alert and aria-invalid
Billable interval selection emits one string from intervals. intervalField binds interval; intervalsParameter resolves to the declared object parameter. Defaults are Billable monthly/quarterly/annual; Subscription resolves monthly/yearly. An absent value has a disabled Choose interval placeholder; an invalid value remains visible as a disabled option plus an alert. HTML supplies the same static options and validation semantics.
Tokens
The token roles this component reads.
billing.interval.textinput.borderinput.backgroundinput.validation
Readiness
The evidence recorded for this component, with its label.
proven-in-generated-apps: catalog_list gives this label when generated React and Vue apps in the runtime sweep that ships with this version both use the component. That sweep was measured on a build of 0.19.0's source before it was published, not on the published package.
| Evidence | React | Vue |
|---|---|---|
| state | implemented-evidence-complete | implemented-evidence-complete |
| versioned contract | passed | passed |
| target implementation | passed | passed |
| package export | passed | passed |
| public declaration | passed | passed |
| dependency closure | passed | passed |
| framework scenario | passed | passed |
| accessibility | verified | verified |
| interaction | verified | verified |
| visual themes | verified | verified |
Use your own
You can replace this component with your own React or Vue component. Map it, and generated code imports yours at the exact version you name. A contract report, run in a real browser, lists what your component met, what it didn't, and what wasn't checked.
The component_map call, with the parts in angle brackets yours to fill:
{
"action": "create",
"apply": true,
"externalSystem": "<your design system>",
"externalComponent": "<YourBillingIntervalSelector>",
"oodsTraits": [
"Billable"
],
"substitution": {
"component": "BillingIntervalSelector",
"react": {
"package": "<your-package>/react",
"version": "<exact version>",
"export": "<YourBillingIntervalSelector>"
},
"vue": {
"package": "<your-package>/vue",
"version": "<exact version>",
"export": "<YourBillingIntervalSelector>"
}
}
} How this page was made
Generated at build from the published data, each source with the hash of what was read. The page's manifest.
- Contract:
@oods/component-contracts@0.19.0 componentContracts.BillingIntervalSelectorsha256:655f74dd8a74… - Documented example:
@oods/component-contracts@0.19.0 sharedScenarios billing-interval-subscriptionsha256:5aa572cdd570… - Catalog entry (catalog_list):
generated/0.19.0/system/catalog.json BillingIntervalSelectorsha256:eb459a2df06a… - React readiness:
@oods/components-react@0.19.0 readiness BillingIntervalSelectorsha256:a85e10a318c8… - Vue readiness:
@oods/components-vue@0.19.0 readiness BillingIntervalSelectorsha256:9981c185aa7c… - Prop types:
generated/0.19.0/components/prop-types.json BillingIntervalSelectorsha256:a6f5a2ef4e37…