@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
83 lines • 2.92 kB
JavaScript
export const FormStatusProperties = {
text: {
doc: 'The `text` appears as the status message. Beside plain text, you can send in a React component as well.',
type: 'React.ReactNode',
status: 'optional'
},
children: {
doc: 'The `text` appears as the status message. Beside plain text, you can send in a React component as well.',
type: 'React.ReactNode',
status: 'optional'
},
title: {
doc: 'The `title` attribute in the status.',
type: 'string',
status: 'optional'
},
role: {
doc: 'The `role` attribute for accessibility, defaults to `alert`.',
type: 'string',
status: 'optional'
},
state: {
doc: 'Defines the visual appearance of the status. These are the statuses `error`, `warning`, `information` and `marketing`. The default status is `error`.',
type: ['"error"', '"warning"', '"information"', '"success"', '"marketing"'],
status: 'optional'
},
size: {
doc: 'Defines the appearance size. There are these sizes `default`, `large`. The default status is `default`.',
type: ['"default"', '"large"'],
status: 'optional'
},
icon: {
doc: 'The `icon` show before the status text. Defaults to `error`.',
type: 'React.ReactNode',
status: 'optional'
},
iconSize: {
doc: 'The icon size of the icon shows. Defaults to `medium`.',
type: 'string',
status: 'optional'
},
variant: {
doc: 'As of now, there is the `plain` and the `outlined` variant. Defaults to `plain`.',
type: ['"plain"', '"outlined"'],
status: 'optional'
},
stretch: {
doc: 'If set to `true`, then the FormStatus will be 100% in available `width`. **NB:** Only use this on independent status messages.',
type: 'boolean',
status: 'optional'
},
show: {
doc: 'Provide `false` if you want to animate the visibility. Defaults to `true`.',
type: 'boolean',
status: 'optional'
},
noAnimation: {
doc: '**NB:** Animation is disabled as of now. ~~Use `true` to omit the animation on content visibility. Defaults to `false`.~~',
type: 'boolean',
status: 'optional'
},
globalStatus: {
doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',
type: 'Various',
status: 'optional'
},
shellSpace: {
doc: 'Use it to set an inner margin. It supports the same properties as [Space](/uilib/layout/space/properties). Useful for animation.',
type: ['string', 'object'],
status: 'optional'
},
skeleton: {
doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',
type: 'boolean',
status: 'optional'
},
'[Space](/uilib/layout/space/properties)': {
doc: 'Spacing properties like `top` or `bottom` are supported.',
type: ['string', 'object'],
status: 'optional'
}
};
//# sourceMappingURL=FormStatusDocs.js.map