How to use the hig-vanilla.Tabs.AvailableAlignments function in hig-vanilla

To help you get started, we’ve selected a few hig-vanilla examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Autodesk / hig / packages / react / src / elements / components / Tabs / Tabs.js View on Github external
key={index}
              index={index}
            />
          ))}
        
        {activeTab ? activeTab.content : null}
      
    );
  }
}

Tabs.propTypes = {
  /**
   * Specify how to justify the tabs within their container
   */
  align: PropTypes.oneOf(VanillaTabs.AvailableAlignments),
  /**
   * Called when user activates a tab
   */
  onTabChange: PropTypes.func,
  /**
   * Accepts Tab components
   */
  children: PropTypes.node
};

Tabs.defaultProps = {
  align: "center",
  onTabChange: () => {}
};
github Autodesk / hig / packages / react / src / adapters / Tabs / TabsAdapter.js View on Github external
{props.children}
          
        
      )}
    
  );
}

TabsAdapter.propTypes = {
  align: PropTypes.oneOf(Tabs.AvailableAlignments)
};

TabsAdapter.defaultProps = {
  align: "center"
};