Badge
Status label with a tinted background in its tone colour.
Use a badge to show a short status, such as the status of a transaction.
Tones
neutral is the default: dark text on a grey tint. info, success, warning and danger use a soft tint with text in the tone colour. accent uses the accent colour on its soft tint. Every tone has square corners and no dot, and its text passes 4.5:1 contrast.
Use neutral for ordinary states such as Draft. Keep colour for a state that needs attention.
In the data grid
A data grid column with type: 'badge' shows the same label. tones maps each value to a tone. See Data grid.
API
Attributes
Prop
Type
Slots
Prop
Type
CSS parts
Prop
Type
Icons
The draft NSUI stroke icons, at 16px and 20px.
Button
Button with variants, sizes and a loading state.
NSUI is a community project. It is not an official Oracle NetSuite product. NetSuite is a trademark of Oracle.