Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default (function (Tabs) {
var DocumentedTabs = describe(Tabs).availableAt(getAvailableAtBadge('Tabs')).description('A tabular view component.').usage('import { Tabs, Tab } from \'grommet\';\n\n ...\n ...\n');
DocumentedTabs.propTypes = {
activeIndex: PropTypes.number.description('Active tab index. If specified, Tabs will be a controlled component. This means that future\ntab changes will not work unless you subscribe to onActive function and update activeIndex\naccordingly.'),
children: PropTypes.arrayOf(PropTypes.instanceOf(Tab)).description('Array of Tab.').isRequired,
justify: PropTypes.oneOf(['start', 'center', 'end']).description('How to align the tabs along the main axis.').defaultValue('center'),
messages: PropTypes.shape({
tabContents: PropTypes.string
}).description('Custom messages for Tabs. Used for accessibility by screen readers.').defaultValue({
tabContents: 'Tab Contents'
}),
onActive: PropTypes.func.description('Function that will be called with the active tab index when the currently active\ntab changes.')
};
return DocumentedTabs;
});
bounds: PropTypes.arrayOf(PropTypes.string)
.description(`An array of two numbers indicating the limits on
navigation in ISO8601 format`),
disabledDates: PropTypes.arrayOf(PropTypes.oneOfType([
PropTypes.string,
PropTypes.arrayOf(PropTypes.string),
]))
.description(`Multiple dates in ISO8601 format that should not be
selectable. Items that are an array indicate a range of dates.`),
firstDayOfWeek: PropTypes.oneOf([0, 1])
.description('The first day of the week. 0 for Sunday. 1 for Monday.'),
locale: PropTypes.string.description('The locale to use.'),
size: PropTypes.oneOf(['small', 'medium', 'large'])
.description('Size of the calendar drop.'),
value: PropTypes.oneOfType([
PropTypes.instanceOf(Date),
PropTypes.string,
]).description('The date value is Date format of ISO string'),
};
return DocumentedElement;
};