Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

375
Views
How to remove last divider from the list in Grid system in Material Ui

I am using the grid system in material Ui. And make a list of statements with a divider. I want to remove the very last divider from the list. Here is the code snippet of my TSX file

return (
    <Grid key={index}>
      <Grid style={{ display: 'flex', flexDirection: 'row' }}>
        <Grid item direction="column">
          <FontAwesomeIcon icon={listItem.className} color={listItem.color} />
        </Grid>
        <Grid item xs={3} direction="column">
          <span style={{ paddingLeft: '5px', fontSize: '12px', fontWeight: 'bold' }}>{listItem.title}:</span>
        </Grid>
        <Grid item xs={9}>
          <span
            className={classes.listSubHeader}
            style={
              listItem.title === 'Spread & Liquidity' && listItem.color === theme.palette.error.main
                ? { color: theme.palette.error.main, fontWeight: 'bold' }
                : { color: theme.palette.text.primary }
            }>
            {listItem.sentence}
          </span>
        </Grid>
      </Grid>
      <hr className={classes.divider} />
    </Grid>
  );

I want to remove(border: 'none') the last divider only from the grid system. Your precious suggestions would be helpful. Thanks in Advance.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Just in case you would rather use @mui's divider component rather than the hr tag:

import * as React from 'react';
import Divider from '@mui/material/Divider';

const dividerStyle = {
  borderTop: "2px dashed black"
}

export default function DashedDivider() {
  return (
        <Divider sx={dividerStyle}/>
  );
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!