Card and Grid
Card surface and a responsive grid for fields.
Use a card to group related content. Use a grid inside it to lay out fields in columns, like a NetSuite record header.
Card header and footer
The header shows when the card has a heading or content in the actions slot. The footer shows only when the footer slot has content.
Flush
flush removes the body padding. Use it for content that must touch the card edges, such as a data grid.
<nsui-card heading="Line Items" subheading="3 lines" flush>
<nsui-data-grid></nsui-data-grid>
</nsui-card>Grid columns
The grid has 3 columns by default. Set columns to change it. The grid measures its own width, not the window. It changes to 2 columns when it is 720px wide or less, and to 1 column at 460px or less. A grid in a narrow card collapses even on a wide screen.
Spanning cells
Put span="2" on a child to fill two columns. Put span="full" on a child to fill the whole row.
<nsui-grid>
<nsui-input label="Memo" span="2"></nsui-input>
<nsui-input label="Reference No."></nsui-input>
<nsui-input label="Notes" span="full"></nsui-input>
</nsui-grid>API
nsui-card
Attributes
Prop
Type
Slots
Prop
Type
CSS parts
Prop
Type
nsui-grid
Attributes
Prop
Type
Slots
Prop
Type
CSS parts
Prop
Type
Button
Button with variants, sizes and a loading state.
Checkbox
Checkbox or switch that submits `T` when checked.
NSUI is a community project. It is not an official Oracle NetSuite product. NetSuite is a trademark of Oracle.